Skip to main content

CatalogCommands

Enum CatalogCommands 

Source
pub enum CatalogCommands {
    List {
        catalog: Option<PathBuf>,
        assembly: Option<String>,
        source: Option<String>,
    },
    Show {
        id: String,
        catalog: Option<PathBuf>,
        all_contigs: bool,
    },
    Export {
        output: PathBuf,
        catalog: Option<PathBuf>,
    },
    ListHierarchical {
        catalog: PathBuf,
    },
    BuildHierarchical {
Show 14 fields id: String, name: String, inputs: Vec<PathBuf>, assembly_id: Option<String>, version_id: Option<String>, source: Option<String>, download_url: Option<String>, tags: Option<String>, output: Option<PathBuf>, append_to: Option<PathBuf>, force: bool, require_md5: bool, infer_assembly: Option<Option<PathBuf>>, no_generate_ucsc_names: bool,
}, Build {
Show 15 fields id: String, name: String, inputs: Vec<PathBuf>, assembly: Option<String>, source: Option<String>, description: Option<String>, download_url: Option<String>, assembly_report_url: Option<String>, tags: Option<String>, output: Option<PathBuf>, append_to: Option<PathBuf>, force: bool, input_format: Option<InputFormatArg>, require_md5: bool, no_generate_ucsc_names: bool,
}, }

Variants§

§

List

List all references in the catalog

Fields

§catalog: Option<PathBuf>

Path to custom catalog file

§assembly: Option<String>

Filter by assembly (e.g., “GRCh38”)

§source: Option<String>

Filter by source (e.g., “UCSC”)

§

Show

Show details of a specific reference

Fields

§id: String

Reference ID

§catalog: Option<PathBuf>

Path to custom catalog file

§all_contigs: bool

Show all contigs

§

Export

Export the catalog to a file

Fields

§output: PathBuf

Output file path

§catalog: Option<PathBuf>

Path to custom catalog file to export (defaults to embedded)

§

ListHierarchical

List hierarchical catalog contents (assemblies, versions, distributions)

Fields

§catalog: PathBuf

Path to hierarchical catalog file

§

BuildHierarchical

Build a hierarchical catalog entry (FastaDistribution)

Fields

§id: String

Distribution ID (e.g., “hg38_custom”)

§name: String

Display name (e.g., “hg38 Custom Build”)

§inputs: Vec<PathBuf>

Input file(s) - can be specified multiple times

§assembly_id: Option<String>

Assembly ID to attach to (e.g., “grch38”)

§version_id: Option<String>

Version ID to attach to (e.g., “grch38_p14”)

§source: Option<String>

Source organization (ucsc, ncbi, broad, ensembl, 1kg, dragen, gdc, or custom)

§download_url: Option<String>

Reference FASTA download URL

§tags: Option<String>

Tags (comma-separated)

§output: Option<PathBuf>

Output file (creates new hierarchical catalog or standalone distribution JSON)

§append_to: Option<PathBuf>

Append to existing hierarchical catalog

§force: bool

Overwrite if distribution ID already exists

§require_md5: bool

Require MD5 checksums for all contigs

§infer_assembly: Option<Option<PathBuf>>

Infer base assembly by matching MD5s against an existing catalog If no path given, uses the embedded catalog (or –append-to catalog)

§no_generate_ucsc_names: bool

Disable automatic generation of UCSC-style names for patches.

By default, when parsing NCBI assembly reports, UCSC-style names are generated for fix-patches and novel-patches that have “na” in the UCSC-style-name column (common in reports prior to p13).

Use this flag to disable this behavior and only use names explicitly present in the assembly report.

See: https://genome.ucsc.edu/FAQ/FAQdownloads.html

§

Build

Build a new reference entry from input files

Fields

§id: String

Unique reference ID (e.g., “grch38_custom”)

§name: String

Display name (e.g., “GRCh38 Custom Build”)

§inputs: Vec<PathBuf>

Input file(s) - can be specified multiple times Supported formats: .dict, .fai, .sam, .bam, .cram, .vcf, _assembly_report.txt

§assembly: Option<String>

Assembly version (grch37, grch38, or custom name)

§source: Option<String>

Source organization (ucsc, ncbi, broad, ensembl, illumina, 1kg, or custom)

§description: Option<String>

Description text

§download_url: Option<String>

Reference FASTA download URL

§assembly_report_url: Option<String>

NCBI assembly report URL

§tags: Option<String>

Comma-separated tags

§output: Option<PathBuf>

Output file (JSON). If not specified, prints to stdout

§append_to: Option<PathBuf>

Append to existing catalog file

§force: bool

Force overwrite if ID already exists in catalog

§input_format: Option<InputFormatArg>

Force input format instead of auto-detection

§require_md5: bool

Error if any contig lacks MD5 checksum

§no_generate_ucsc_names: bool

Disable automatic generation of UCSC-style names for patches.

By default, when parsing NCBI assembly reports, UCSC-style names are generated for fix-patches and novel-patches that have “na” in the UCSC-style-name column (common in reports prior to p13).

Use this flag to disable this behavior and only use names explicitly present in the assembly report.

See: https://genome.ucsc.edu/FAQ/FAQdownloads.html

Trait Implementations§

Source§

impl FromArgMatches for CatalogCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for CatalogCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,