SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
sam to bam conversion error, no @SQ lines in the header, missing header? efoss Bioinformatics 17 12-03-2015 04:28 AM
RG and header info Help lre1234 Bioinformatics 0 02-07-2013 04:46 AM
FASTA database of human_g1k_v37.fasta ashkot Bioinformatics 6 04-16-2012 02:58 PM
help needed to retrieve fasta reads from fasta db prashanthpnu Bioinformatics 1 06-21-2011 05:59 AM
header.txt shangool Bioinformatics 0 08-13-2010 05:19 AM

Reply
 
Thread Tools
Old 03-31-2013, 01:51 PM   #1
polijana
Member
 
Location: earth

Join Date: Feb 2013
Posts: 12
Default fasta header

Good morning everyone

I have fasta file with this kind of header

>seq1 average3.30
ACTGACTGACTG
>seq3 average5.0
ACTGACTGACTG

how to remove the whitespace together with the word average### leaving only >seq1, i dont want to rename the whole header as i want to maintain the count no (the no is not running)..thanks
polijana is offline   Reply With Quote
Old 03-31-2013, 02:21 PM   #2
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

For a file called "foo.fa", try:
Code:
cat foo.fa | cut -f 1 -d " " > foo.cleaned.fa
dpryan is offline   Reply With Quote
Old 03-31-2013, 03:01 PM   #3
polijana
Member
 
Location: earth

Join Date: Feb 2013
Posts: 12
Default

yes..it works..thankss so much 4 ur time
polijana is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 04:31 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO