-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial working CLI for uniwig #1
- Loading branch information
1 parent
8805252
commit abc71f1
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Current Manual testing | ||
|
||
Full command: | ||
``` | ||
cargo run uniwig | ||
``` | ||
|
||
# Uniwig | ||
|
||
Given a set of bed files, we want to produce 2 [BigWig](http://genome.ucsc.edu/goldenPath/help/bigWig.html) files: one track of the start coordinates, one track of the end coordinates, and one track for core coordinates. | ||
|
||
# Usage | ||
|
||
CLI or Python Bindings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use clap::{Arg, Command}; | ||
|
||
use crate::uniwig::consts::UNIWIG_CMD; | ||
|
||
pub fn create_uniwig_cli() -> Command { | ||
Command::new(UNIWIG_CMD) | ||
.author("DRC") | ||
.about("Given a set of bed files, we want to produce 2") | ||
.arg( | ||
Arg::new("sorted") | ||
.long("sorted") | ||
.short('s') | ||
.help("Specify if the provided bed file is already sorted by the chromosome number.") | ||
.required(false) | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
pub fn run_uniwig() { | ||
println!("Im running.") | ||
use clap::ArgMatches; | ||
|
||
pub mod cli; | ||
|
||
pub fn run_uniwig(matches: &ArgMatches) { | ||
println!("Im running. Here are the arguments: {:?}", matches) | ||
} | ||
|
||
pub mod consts { | ||
pub const UNIWIG_CMD: &str = "uniwig"; | ||
|
||
} |