Git Product home page Git Product logo

nebiolabs / ampseer Goto Github PK

View Code? Open in Web Editor NEW
14.0 12.0 1.0 23.26 MB

Ampseer examines reads in fastq format and identifies which multiplex PCR primer set was used to generate the SARS-CoV-2 sequencing library they are read from. It is intended to differentiate between ARTIC v3, ARTIC v4, ARTIC v4.1, VarSkip 1a, VarSkip 2, Midnight and VarSkip Long primer sets sequenced by Illumina or ONT.

License: GNU Affero General Public License v3.0

Rust 100.00%
sars-cov-2 sequencing pcr targeted-sequencing

ampseer's People

Contributors

bwlang avatar pvanheus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pvanheus

ampseer's Issues

Doesn't compile on linux

I'm sure my Rust on linux isn't up-to-date, but I got this:

error: failed to parse manifest at /mnt/home/mcampbell/src/ampseer/Cargo.toml

Caused by:
feature edition2021 is required

this Cargo does not support nightly features, but if you
switch to nightly channel you can add
cargo-features = ["edition2021"] to enable this feature

Failing tests

After running cargo test:

running 10 tests
test test_cli ... ok
test test_help_exit_code ... ok
test missing_reads ... ok
test ont_amps_find_both_orientations ... FAILED
test differentiate_artic_v3_from_vss ... FAILED
test test_version ... ok
test test_insufficient_arguments ... ok
test non_matching_primer_sets ... ok
test differentiate_vss_from_artic_v3 ... ok
test differentiate_vss2_from_vss1a ... FAILED

failures:

---- ont_amps_find_both_orientations stdout ----
thread 'ont_amps_find_both_orientations' panicked at 'Unexpected stdout, failed fn(var)
└── var as str:

command="/Users/mcampbell/Desktop/src/ampseer/target/debug/ampseer" "--primer-sets" "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/vss_18_28.bed.fasta" "--reads" "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/ont_vss_full_length_amp18rev_amp28for.fastq"
code=1
stdout=""
stderr="2022-01-25 17:12:39,767 ERROR [ampseer] Could not find reads at "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/ont_vss_full_length_amp18rev_amp28for.fastq"\nError: Invalid input\n"
', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:227:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

---- differentiate_artic_v3_from_vss stdout ----
thread 'differentiate_artic_v3_from_vss' panicked at 'Unexpected stdout, failed fn(var)
└── var as str:

command="/Users/mcampbell/Desktop/src/ampseer/target/debug/ampseer" "--primer-sets" "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/primer_sets/ARTIC_v3.bed.fasta" "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/primer_sets/neb_vss1a.bed.fasta" "--reads" "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/artic_v3.fastq"
code=1
stdout=""
stderr="2022-01-25 17:12:39,767 ERROR [ampseer] Could not find reads at "/Users/mcampbell/Desktop/src/ampseer/tests/fixtures/artic_v3.fastq"\nError: Invalid input\n"
', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:227:5

---- differentiate_vss2_from_vss1a stdout ----
thread 'differentiate_vss2_from_vss1a' panicked at 'Unexpected stdout, failed fn(var)
└── var as str: unknown

handle nextera fragmented libraries

nextera transposases cannot insert at the extreme ends of amplicons. To handle these libraries, it would be necessary to enable partial matches with expected start sequences.

Test file doesn't exist

Running the first command in the readme:

samtools bam2fq: Cannot read file "tests/fixtures/vss2_small.bam": No such file or directory

bioconda package

Hi!

This is a very nice tool.

Once you have enough confidence in it, it would be nice to create a package on bioconda to make it easier to integrate in workflow (e.g. I would like to add it to V-pipe, as we need primer autodetection for several components )

I can give a hand with that if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.