mhammell-laboratory / TEtranscripts

A package for including transposable elements in differential enrichment analysis of sequencing datasets.
http://hammelllab.labsites.cshl.edu/software/#TEtranscripts
GNU General Public License v3.0
229 stars 30 forks source link

Extract specific type of Transposable Element (TE)reads #162

Closed sixingchen718 closed 11 months ago

sixingchen718 commented 1 year ago

Hi Oiver, Thank you to develop the powerful tool,I have a question,I currently have bam files that have been mapped using STAR for my research. I need to extract reads for a specific type of Transposable Element (TE). Can TEcount do this? Or can TEcount output bam files that are mapped to TEs? Regards, Fixing

olivertam commented 1 year ago

Hi,

Thank you for your interest in the software. TEcount is not designed to pull out reads, but you can use tools such as bedtools intersect to do so. You will need a BED or GTF with the TE of interest to intersect with your BAM file. Please note that you may not get the exact number of reads corresponding to TEcount's output, as there is an EM step to re-destribute read that cannot be represented easily in a BAM file.

Thanks.

sixingchen718 commented 1 year ago

Thank you for your guidance regarding the use of bedtools intersect for extracting reads related to transposable elements (TEs) from BAM files.I share your concerns about the potential accuracy issues when using bedtools intersect,I will proceed with using bedtools intersect as per your suggestion and compare the result of TEcount. Thanks so much

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days