Entering edit mode
4.4 years ago
kristina.mahan
▴
170
I have a fasta sequence and I want to extract nucleotides 5000-8000. What commands can I use to do this?
I have a fasta sequence and I want to extract nucleotides 5000-8000. What commands can I use to do this?
Please search the site before you start a new topic. The question How to extract the last 1000 nt from a group of sequences in a FASTA file? has an answer from shenwei356 that addresses your situation:
seqkit subseq supports this, if you want a fast solution.
seqkit subseq -r -1000:-1 seqs.fa > result.fa
If you want to learn programming, write some Python scripts using Biopython.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.