Hi @Ruby,
I can confirm the seg-fault which is caused by --outStd BAM_Quant option, I will fix this bug in the next few days.
In the meantime, you can try using fifo files instead of stdout piping:
$ rm Aligned.toTranscriptome.out.bam
$ mkfifo Aligned.toTranscriptome.out.bam
$ STAR {--quantMode TranscriptomeSAM + all other options except --outStd BAM_Quant ...} & samtools calmd -b Aligned.toTranscriptome.out.bam /path/to/transcripts.fa > A.transcriptome.md.bam
Note that you need to feed samtools calmd the transcripts sequences, not the reference genomic fasta.
You can generate this, for instance, with RSEM tool:
$ rsem-prepare-reference --gtf /path/to/annot.gtf reference.genome.fa RSEMref
RSEMref.idx.fa can then be used for samtools calmd.
Cheers
Alex
/sonas-hs/gingeras/nlsas_norepl/user/dobin/STAR/Releases/FromGitHub/STAR-2.5.2a/bin/Linux_x86_64/STAR --genomeDir /home/dobin/STARruns/STARtests/TestSuite/Insert_chr22_FI_1M_PE/new/GTF --readFilesCommand zcat --outSAMattributes All --outSAMstrandField intronMotif --quantMode TranscriptomeSAM --quantTranscriptomeBan Singleend --outSAMtype BAM Unsorted --runThreadN 12 --readFilesIn /sonas-hs/gingeras/nlsas_norepl/user/dobin/STAR/TestSuite//chr22_1.fq.gz /sonas-hs/gingeras/nlsas_norepl/user/dobin/STAR/TestSuite//chr22_2.fq.gz & samtools calmd -b Aligned.toTranscriptome.out.bam /sonas-hs/gingeras/nlsas_norepl/user/dobin/STAR/TestSuite/RSEM/RSEMref.idx.fa