Skip to content

Commit

Permalink
Edited documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobolner committed Sep 15, 2024
1 parent f544e67 commit 1677c4d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ncbi_genome"
version = "0.1.0"
name = "genomers"
version = "0.1.1"
edition = "2021"

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/accession.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ impl NCBIGenome {
}
}

///TESTS
#[cfg(test)]
mod tests {
use crate::accession::NCBIGenome;
Expand Down
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use clap::Parser;
use download::download;

pub mod accession;
use crate::accession::NCBIGenome;
pub mod download;
use download::download;

/// Simple program to download genome information and sequence from NCBI
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
Expand All @@ -14,16 +15,14 @@ struct Args {
/// Assembly name
#[arg(required = true, short, long)]
name: String,
/// Download assembly report
/// Download assembly report in txt format
#[arg(group = "download", short, long)]
report: bool,
/// Download assembly report
/// Download assembly sequence in fna.gz format
#[arg(group = "download", short, long)]
genome: bool,
}

//-a GCF_000005845.2 -n ASM584v2

//TODO if no assembly name specified download the most recent (needs ftp?)

fn main() {
Expand Down

0 comments on commit 1677c4d

Please sign in to comment.