Skip to content

Commit

Permalink
chore: rename enum entry from RefSeq to Refseq (avoids -, instead of …
Browse files Browse the repository at this point in the history
…alias)
  • Loading branch information
tedil committed Nov 11, 2024
1 parent 111ffcc commit 8371b14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/db/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub struct Args {
#[derive(Debug, Clone, Copy, ValueEnum)]
pub enum TxSource {
/// RefSeq.
RefSeq,
Refseq,
/// Ensembl.
Ensembl,
/// Other.
Expand Down Expand Up @@ -1765,7 +1765,7 @@ pub fn run(common: &crate::common::Args, args: &Args) -> Result<(), Error> {
let assembly_version = args.assembly_version.clone();

let source_name = match args.transcript_source {
TxSource::RefSeq => Source::Refseq,
TxSource::Refseq => Source::Refseq,
TxSource::Ensembl => Source::Ensembl,
TxSource::Other => Source::Unknown,
};
Expand Down Expand Up @@ -1892,7 +1892,7 @@ pub mod test {
path_seqrepo_instance: PathBuf::from("tests/data/db/create/txs/latest"),
assembly: GenomeRelease::Grch38,
assembly_version: None,
transcript_source: TxSource::RefSeq,
transcript_source: TxSource::Refseq,
transcript_source_version: None,
max_txs: None,
gene_symbols: None,
Expand Down Expand Up @@ -1931,7 +1931,7 @@ pub mod test {
path_seqrepo_instance: PathBuf::from("tests/data/db/create/seleonoproteins/latest"),
assembly: GenomeRelease::Grch38,
assembly_version: None,
transcript_source: TxSource::RefSeq,
transcript_source: TxSource::Refseq,
transcript_source_version: None,
max_txs: None,
gene_symbols: None,
Expand Down

0 comments on commit 8371b14

Please sign in to comment.