This is a test version of Biostars. For the public version, visit https://www.biostars.org.
STAR aligned BAM files

Hello all, I have 24 genome aligned BAM files using STAR. I donot have the fatsq files, and i want to have count of isoforms. I know i can use STAR with parameters to have that, but it seems that i cannot directly use these BAM files in STAR. Is there any way to do that?

genome_aligned star bam files transcripts

but it seems that i cannot directly use these BAM files in STAR.

You most definitely can.

2 answers

Use ' samtools fastq' to convert the bams back to fastq. See: https://www.htslib.org/doc/samtools-fasta.html

Side note: This assumes that fastq files were not trimmed or manipulated in the first place before STAR alignment and BAM files were not filtered or manipulated either. If not, then you can recreate the original files. Still, and I do not get tired saying that, a reproducible analysis requires raw data. Ask yourself why you don't have it and whether it, together with experimental methods and logs, you can get it to be publishable.

You cannot use STAR to get isoform level counts, only gene level counts and you can do that using an input BAM. For transcript level counts, use a quantification tool such as salmon/kallisto or RSEM

Log in to answer this question.