How to make .fasta file
2
0
Entering edit mode
2 days ago
otieno43 ▴ 30

I have downloaded something that looks like a fasta file that from UTRdb 2.0 1: http://utrdb.cloud.ba.infn.it/utrdb/. Upon closer look, it is not recognized as a fasta file. I am wondering how to convert the file into fasta. I have attached the file in the link below. Some help please.1

Thanks for the help.

.fasta file • 422 views
ADD COMMENT
3
Entering edit mode
2 days ago
Umer ▴ 160

Seems like the file is fasta but has some comments at start of the file like

#genome-build: ASM210954v1
#genome-version: ASM210954v1
#genome-date: 2017-04
#genome-build-accession: GCA_002109545.1
#genebuild-last-updated: 2020-03
>|five_prime_utr|ENSAPOT00000006813|ENSAPOG00000008320|61446_61655_+_MVNR01001590.1
GTTTCAGGACAACGATGCGGAGAATGGCGATAAAATAACACACAAAACTTTGGAAACCCC
CAAAGACATCTACCCCATTCATGTTGTTCCAGAAAATAAAGAGAGGACACAGGGATCATG
TGCCCACTTTAAGGAGAGGAAAGACGTCACAAAGCAGGTCCGCTCCAAGTCCCCCACACT
GTTGGTCAACTTGGAGGAGGCCTTGGAAAG

you can try removing them by

grep -v ^"#" input-file.utrs > output-file.utrs/fasta
ADD COMMENT
0
Entering edit mode

output-file.utrs/fasta

Did you mean to say output-file.utrs.fasta?

ADD REPLY
0
Entering edit mode

i meant about the extention. either .utrs or .fasta

ADD REPLY
0
Entering edit mode

I think the output can still be either file.utrs.fasta or just file.fasta.

ADD REPLY
0
Entering edit mode

Let me try get rid of them and see what happens.

ADD REPLY
0
Entering edit mode

This worked very well, thank you.

ADD REPLY
0
Entering edit mode
2 days ago
Mensur Dlakic ★ 28k

Your file is a gzipped archive. You must first unpack it with gunzip:

gunzip Glossina_fuscipes.Yale_Gfus_2.54.utrs.gz

That will make a file Glossina_fuscipes.Yale_Gfus_2.54.utrs with your UTRs in FASTA format.

ADD COMMENT
0
Entering edit mode

Had done this before and have repeated again but it still does not come up as fasta file but just like any other normal file with fasta file features.

ADD REPLY

Login before adding your answer.

Traffic: 1594 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