Giter Site home page Giter Site logo

Comments (3)

shenwei356 avatar shenwei356 commented on June 7, 2024 1

Can we have that info on the manual?

Added.

Attention:
  1. When extracting with BED/GTF from plain text FASTA files, the order of output sequences
     are random. To keep the order, just compress the FASTA file (input.fasta) and use the
     compressed one (input.fasta.gz) as the input.
  2. Use "seqkit grep" for extracting subsets of sequences.
     "seqtk subseq seqs.fasta id.txt" equals to
     "seqkit grep -f id.txt seqs.fasta"

would it be nice adding control to subseq seed

BED records are saved in a map/hash, which is totally random, can't be controlled by seed number.
The logic is fast extracting the FASTA sequence that appeared the in BED file via the FASTA index

from seqkit.

shenwei356 avatar shenwei356 commented on June 7, 2024

Yes. For plain text FASTA input, the order of output records is random.

Try compressing the merged-gnm.fa file and use merged-gnm.fa.gz as the input.

from seqkit.

Aciole-David avatar Aciole-David commented on June 7, 2024

Execution time increases but it works fine. Thank you!

Can we have that info on the manual?
Also, would it be nice adding control to subseq seed, right?

Thanks a lot!

gzip merged-gnm.fa

for run in {1..4}; do
seqkit subseq --quiet --bed covid19_sample-positions.bed merged-gnm.fa.gz -j 12 | head && echo "" ;
done

>covid19_sample-conserved
GCACTAACTAAGTTCCTAACCACTT
>covid19_sample-negative
GGGCATAGTAAGGCAGTTT
>covid19_sample-uncertain
TACAGTCGTTGGTCCTCG
>covid19_sample-antisense
CTTTACTGTGGACCGTGGCA
>covid19_sample-deep
GGCAGTAATAGGTCTTAATACCA

>covid19_sample-conserved
GCACTAACTAAGTTCCTAACCACTT
>covid19_sample-negative
GGGCATAGTAAGGCAGTTT
>covid19_sample-uncertain
TACAGTCGTTGGTCCTCG
>covid19_sample-antisense
CTTTACTGTGGACCGTGGCA
>covid19_sample-deep
GGCAGTAATAGGTCTTAATACCA

>covid19_sample-conserved
GCACTAACTAAGTTCCTAACCACTT
>covid19_sample-negative
GGGCATAGTAAGGCAGTTT
>covid19_sample-uncertain
TACAGTCGTTGGTCCTCG
>covid19_sample-antisense
CTTTACTGTGGACCGTGGCA
>covid19_sample-deep
GGCAGTAATAGGTCTTAATACCA

>covid19_sample-conserved
GCACTAACTAAGTTCCTAACCACTT
>covid19_sample-negative
GGGCATAGTAAGGCAGTTT
>covid19_sample-uncertain
TACAGTCGTTGGTCCTCG
>covid19_sample-antisense
CTTTACTGTGGACCGTGGCA
>covid19_sample-deep
GGCAGTAATAGGTCTTAATACCA

from seqkit.

Related Issues (20)

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.