how many sequences are in genome file
1
0
Entering edit mode
2.4 years ago
ikramb450 • 0

how can we check that,the how many sequences are in genome file...?

genomic sequence • 1.9k views
ADD COMMENT
2
Entering edit mode

please define "genome file"

also: what did you try ?

ADD REPLY
0
Entering edit mode

i want to extract the only sequences counting in genome file...

ADD REPLY
1
Entering edit mode

What is a genome file, and please don't use the term 'genome file' in the comment to that.

ADD REPLY
0
Entering edit mode

genome file means gtf file which is fasta file

ADD REPLY
3
Entering edit mode

A gtf is not a fasta file.

ADD REPLY
0
Entering edit mode

ok...but in my question which is asking me by my teacher he says to me that the how many sequences are in genome file.... and which file provided me by my teachers which is *.gtf file so thats why is just call it.....

ADD REPLY
0
Entering edit mode

but now i am totally confused .... that how can i get sequence from a file..?

ADD REPLY
4
Entering edit mode

This is a pointless discussion. You apparently do not know what you are working with so either provide a snippet if the file here or ask the person who gave it for details.

ADD REPLY
0
Entering edit mode

sorry for disturbance but its not my motive i am beginner so i have not a wide knowledge about unix and my research is all about on the bioinformatics so thats why i just try to get some knowledge from this site and thats why i previously demanding a youtube channel through which i can learn about unix commands and how can we do work on it.... once again sorry i hope you understand my situation

ADD REPLY
6
Entering edit mode

Rather than apologising (no need for that), actually read what people are saying to you and provide a sample of the file you’ve been given. Try and make it easy for people to help you rather than guessing, or else you’ll find that nobody will help. Please also show a bit of evidence that you’ve tried to solve this question yourself rather than dumping it here.

I have a lot of sympathy - I remember being a beginner and not knowing much (see the awful early posts I made here). It’s very hard as bioinformatics is a jungle at times. But learning how to seek help and find something out for yourself is the most important skill you’ll learn.

ADD REPLY
0
Entering edit mode

now please tell me how can i extracted the counting of sequenes in a file....

ADD REPLY
0
Entering edit mode

...my question which is asking me by my teacher...

Why don't you approach your teacher for guidance? I'm sure they can point you to the resources they are expecting you to learn from.

ADD REPLY
2
Entering edit mode
2.4 years ago

Assuming you are talking about a fasta file, you can just count the number of lines that start with a right angle bracket >.

grep -c "^>" file.fasta
ADD COMMENT
0
Entering edit mode

thank you so much can i use also pipe and wc -l for the counting of exect sequnces counting in genome file..?and tgere no samtools is to be used here yes or no..?

ADD REPLY
0
Entering edit mode

Do you actually have access to the file? If yes, the first step you need to do is to understand what the content of the file looks like. This can be achieved, for example, via head genomefile. You can copy and paste the output here and then we can walk you through the next step. Or you could come up with it yourself and, for example, try whether wc -l will do the trick.

ADD REPLY

Login before adding your answer.

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