question regarding splitting fa file with fasplit
1
0
Entering edit mode
4.1 years ago
citronxu ▴ 20

Hello everyone,

I used fasplit to separate my fasta file into two parts, it works fine but some part got dropped.

the code I use faSplit sequence 'myfile' file-number-required 'output_filename'

format in my original fasta file. that of my division files

somehow the gene ID got cut off when the software gonna recognize the sequence boundaries and execute splitting function.

Should I revise the format of my original file which makes the boundaries beyond my gene ID so that it wont be lost? and how?

appreciate any help!

fasplit • 7.1k views
ADD COMMENT
0
Entering edit mode

Many programs ignore things after first white space in fasta header. See if you can pass the entire header in " to faSplit and see if that helps. Otherwise you will need to change the spaces to _ to make the headers unique.

ADD REPLY
0
Entering edit mode

there is no need to add an image, the content of your shell is text, highlight the text then paste it into the box, and select "code" formatting, like so:

cat foo.fa

prints:

>foo bar baz
TTAGGAGGAACACCAGTGGCGAAAGCGGCTTACTGGACTGTAAC
ADD REPLY
0
Entering edit mode

thank you for the advice:)

ADD REPLY
1
Entering edit mode
4.1 years ago

Use a different tool, for example seqkit

you can split files by id with:

seqkit split -i foo.fa
ADD COMMENT
0
Entering edit mode

thank you, it works!

ADD REPLY

Login before adding your answer.

Traffic: 2285 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6