Neel2870 days ago
Extract "Seq2" from the list below>Seq1GTGCACTAAGAAAAATAAAATTTGTTCTTTTAAGATAATCATTTCCTGGACGAATATCAATAGCAATAGAATAAGTCCAATCAAATGATTGCCGTGATGAACGAACTTGTAATTGTTGATAACTAGAACCATGCTGTAAACAAAATTTTGATGACCATTGTGGTCGACCTTCTTGTTGACGATGTAAACCATTTCCAACTCGCATAACACATGTATTATTACGCTGAGCATTATCGAAAGAAAGAAGAAGT>Seq2CAGGGCCAGCGCCGCCGACAGGCCGGTGAAGCCGCCGCCGACGATGGCCACGTCCACCTGCGCCGGCAGGTCTTGCGACCGCGGCACGAAGGCGGGGGCGGAATCGGTCCAGTACGGGTCGAGCTTCATGGCGGCGGCGAGGGGCGGGAAGGGCAGCGTTCGATCAGGGGCCGGGGTTCAGAGACCCACCACGCCGGGCAGGCCGCCGATGTCCTGGATCTCGACATAGCGATAGGCCGGGTTGCCCGGGC
Extract "Seq2" from the list below
>Seq1GTGCACTAAGAAAAATAAAATTTGTTCTTTTAAGATAATCATTTCCTGGACGAATATCAATAGCAATAGAATAAGTCCAATCAAATGATTGCCGTGATGAACGAACTTGTAATTGTTGATAACTAGAACCATGCTGTAAACAAAATTTTGATGACCATTGTGGTCGACCTTCTTGTTGACGATGTAAACCATTTCCAACTCGCATAACACATGTATTATTACGCTGAGCATTATCGAAAGAAAGAAGAAGT>Seq2CAGGGCCAGCGCCGCCGACAGGCCGGTGAAGCCGCCGCCGACGATGGCCACGTCCACCTGCGCCGGCAGGTCTTGCGACCGCGGCACGAAGGCGGGGGCGGAATCGGTCCAGTACGGGTCGAGCTTCATGGCGGCGGCGAGGGGCGGGAAGGGCAGCGTTCGATCAGGGGCCGGGGTTCAGAGACCCACCACGCCGGGCAGGCCGCCGATGTCCTGGATCTCGACATAGCGATAGGCCGGGTTGCCCGGGC
Try samtools
$ samtools faidx multifile.fa
$ samtools faidx multifile.fa Seq2 > Seq2.fa
I always try faSomeRecords, to extract. It is lil handy.
See BIOCONDA https://bioconda.github.io/recipes/ucsc-fasomerecords/README.html
This seems interesting tool indeed. The BIOCONDA name is funny ;)
— Abhimanyu Singh 2870 days ago
You can also try this, if you have lists of ids
grep -A1 -w -f id.txt seqFile.fasta > output.fasta
Try samtools
$ samtools faidx multifile.fa
$ samtools faidx multifile.fa Seq2 > Seq2.fa