I hv tried htseq-count, really hard.
But it cannt be installed on our lab server.
Thank you all the same^^
Header Leaderboard Ad
Collapse
Raw counts of 12 column bed file (against multiple BAM)
Collapse
Announcement
Collapse
SEQanswers June Challenge Has Begun!
The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!
For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
-
Originally posted by jason_ARGONAUTE View PostOr,
what do i need to do to get raw counts for each gene?
Thank you!
Leave a comment:
-
Or,
what do i need to do to get raw counts for each gene?
Thank you!
Leave a comment:
-
ya, i know and i do exactly as ur pipeline. might be i mixed the concept of exon and transcript. i thought they were the same thing.(both named "FBtrxxx")
So, this is not the reason why i got almost twice counts of genes as i expected.
Could you figure out any other reason? Thank you!
Leave a comment:
-
In step 2 I coverted transcript BED file into exon file. Here the name of each exon is the transcript name which means transcript name is reduddant. In step 5 this same file is converted back into transcript file using R. All reads in exons with same transcript name are summed up. I would not go into using exon names. Just keep the same name (gene name or trasncript name) for each exon of a feature. This makes it quicker in R to sum the counts of all exons.
Leave a comment:
-
Dear swaraj,
It helps me a lot. Thanks again^^
But i hv encountered a now problem now when adopting the new solution. I hv got 23017 exons in total while 14797 genes are mapped to the genome by Tophat & Cufflinks. and 14797 is a proper count for fruit fly. I notice that ur solution use exon coordinates(FBtrxxxx instead of FBgnxxxxx).
I am confused now. what else do i need to do to process the matrix of raw counts i just got before importing it into R packages like edgeR for DEG analysis?
Leave a comment:
-
Dear Jason,
A much quicker solution is to
1. Convert GTF to BED. A nice script is found here http://ea-utils.googlecode.com/svn/t...lipper/gtf2bed
2. Convert the BED file to exon coordinates (BEDTools package).
bed12toBed6 -i filename.bed > filename.exons
3. Get read counts from multiple BAM files (BEDTools package)
multiBamCov -bams aln.1.bam aln.2.bam -bed filename.exons > filename.counts
(Remember to build index of each BAM file using samtools index, else multiBamCov wont work)
4. Load the count file in R environment.
filename <- read.delim("filename.counts", header=FALSE,sep = "\t", stringsAsFactors =FALSE)
5. Sum the exons into gene counts using apply function in R
input <- filename[,7:ncol(filename)]
names <- filename$V4
filename.gene.count<-apply(input,2,function(x){tapply(x,names,function(y){sum(y)})})
6. Write the count file as a text file
write.table(filename.gene.count, file = "filename.gene.count", quote = FALSE, row.names=FALSE, col.names=FALSE)
The order of the counts for samples will be the same order in which you give the BAM files. My previous script is easier to implement but little slower. If you open the script in a text editor you can give the name of the directory of BAM files and the BED file. Hope this helps.
Leave a comment:
-
thanks so much for ur script.
But you didn't give the usage info.
I hv a .gtf file download from EMBL for D.mel now, should i convert it to .bed in advance?
and the usage is?
perl bed_count.pl annotated.bed dir_of_my_bamfiles tmpcount/ my.exon my.count
Leave a comment:
-
Raw counts of 12 column bed file (against multiple BAM)
Hello Everyone,
I am sharing a perl script to get raw read counts from mulitple BAM files, for a given bed file. The script requires bedtools and samtools to be preinstalled in the system.
I hope it is useful for users. An alternative solution exists in python
(http://seqanswers.com/forums/showthread.php?t=18182)Attached Files
Latest Articles
Collapse
-
by seqadmin
Developments in sequencing technologies and methodologies have transformed the field of epigenetics, giving researchers a better way to understand the complex world of gene regulation and heritable modifications. This article explores some of the diverse sequencing methods employed in the study of epigenetics, ranging from classic techniques to cutting-edge innovations while providing a brief overview of their processes, applications, and advances.
Methylation Detect...-
Channel: Articles
05-31-2023, 10:46 AM -
-
Differential Expression and Data Visualization: Recommended Tools for Next-Level Sequencing Analysisby seqadmin
After covering QC and alignment tools in the first segment and variant analysis and genome assembly in the second segment, we’re wrapping up with a discussion about tools for differential gene expression analysis and data visualization. In this article, we include recommendations from the following experts: Dr. Mark Ziemann, Senior Lecturer in Biotechnology and Bioinformatics, Deakin University; Dr. Medhat Mahmoud Postdoctoral Research Fellow at Baylor College of Medicine;...-
Channel: Articles
05-23-2023, 12:26 PM -
-
by seqadmin
Continuing from our previous article, we share variant analysis and genome assembly tools recommended by our experts Dr. Medhat Mahmoud, Postdoctoral Research Fellow at Baylor College of Medicine, and Dr. Ming "Tommy" Tang, Director of Computational Biology at Immunitas and author of From Cell Line to Command Line.
Variant detection and analysis tools
Mahmoud classifies variant detection work into two main groups: short variants (<50...-
Channel: Articles
05-19-2023, 10:03 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Today, 07:14 AM
|
0 responses
4 views
0 likes
|
Last Post
by seqadmin
Today, 07:14 AM
|
||
Started by seqadmin, Yesterday, 01:08 PM
|
0 responses
6 views
0 likes
|
Last Post
by seqadmin
Yesterday, 01:08 PM
|
||
Started by seqadmin, 06-01-2023, 08:56 PM
|
0 responses
16 views
0 likes
|
Last Post
by seqadmin
06-01-2023, 08:56 PM
|
||
Deep Sequencing Unearths Novel Genetic Variants: Enhancing Precision Medicine for Vascular Anomalies
by seqadmin
Started by seqadmin, 06-01-2023, 07:33 AM
|
0 responses
150 views
0 likes
|
Last Post
by seqadmin
06-01-2023, 07:33 AM
|
Leave a comment: