Quick Start¶
Get started with ScanMST in 5 minutes! This tutorial will guide you through your first multi-segment transcript detection.
What you'll learn
- How to run ScanMST on BAM files
- Understanding ScanMST output format
- Verifying your results
Time: ~5 minutes
Prerequisites¶
- ScanMST installed (Installation Guide)
- Basic command-line experience
- A BAM file to analyze (we'll provide sample data)
- A reference genome FASTA file
- A gene annotation GTF file
ScanMST needs specific tags in the BAM file
For comprehensive guide of reads alignment, see the Reads Alignment Tutorial.
Step 1: Get Sample Data¶
ScanMST includes test data in the repository. If you installed from source:
If you installed via pip, download the sample data:
# Download sample BAM file with index
wget https://github.com/ylab-hi/ScanMST/raw/main/tests/data/data_test.bam
wget https://github.com/ylab-hi/ScanMST/raw/main/tests/data/data_test.bam.bai
# Or using curl
curl -L -o data_test.bam https://github.com/ylab-hi/ScanMST/raw/main/tests/data/data_test.bam
curl -L -o data_test.bam.bai https://github.com/ylab-hi/ScanMST/raw/main/tests/data/data_test.bam.bai
# Verify files downloaded correctly
ls -lh data_test.bam*
About the Sample Data
The sample file data_test.bam contains 10 chimeric reads sequenced using PacBio Iso-seq protocol.
Step 2: Your First Run¶
Run ScanMST on the sample data:
Expected output:
- GTF file (data_test.gtf): Store transcript segments (detailed exons) and segment links.
- VCF file (data_test.vcf): Aggregated segment links by positions
- FASTA file (data_test.fasta): Consensus transcript sequences
- JSON file (data_test_TSG0000000001_cy.json): Transcript segment graph
Step 3: Understand the Output¶
ScanMST creates a bunch of files (including VCF, GTF, FASTA files) per sample:
Output format (GTF file):
. scanmst transcript . . . . . sr "4"; osr "4"; transcript_id "TSP2127603018"; gene_id "TSG0000000001"; extend "False";
chr6 scanmst exon 157823215 157823446 . + . exon_id "001"; segment_id "TSN5024142628"; ptc "3"; ptf "1.0"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr6 scanmst exon 157867547 157867633 . + . exon_id "002"; segment_id "TSN5024142628"; ptc "3"; ptf "1.0"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr6 scanmst exon 157873102 157873176 . + . exon_id "003"; segment_id "TSN5024142628"; ptc "3"; ptf "1.0"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr6 scanmst exon 157875051 157875176 . + . exon_id "004"; segment_id "TSN5024142628"; ptc "3"; ptf "1.0"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr10 scanmst exon 94820496 94820637 . + . exon_id "001"; segment_id "TSN2095345182"; ptc "2"; ptf "0.6666666666666666"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr10 scanmst exon 93636995 93637062 . + . exon_id "001"; segment_id "TSN7383915218"; ptc "2"; ptf "0.6666666666666666"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
chr10 scanmst exon 89136383 89139408 . - . exon_id "001"; segment_id "TSN1003188885"; ptc "1"; ptf "0.3333333333333333"; transcript_id "TSP2127603018"; gene_id "TSG0000000001";
Attributes:
- segment_id: Identifier of an individual transcript segment
- transcript_id: Identifier of a multi-segment transcript (MST)
- gene_id: Identifier grouping MSTs that share transcript segments
Output format (GTF file):
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT isoseq_data
chr6 157875177 1 . <ITPL> . . CANONICAL;LINKTYPE=ITPL;SR=7;OSR=7;CHR2=chr10;SVEND=94820496;DP1=10;DP2=7;PSI=0.452;SVLEN=0;GENE1=SNX9;GENE2=CYP2C19;SVTYPE=TRA;SEGMENT1=TSN5024142628,TSN5024142628;SEGMENT2=TSN2095345182,TSN2095345182;STRAND1=+;STRAND2=+;MODE1=MS;MODE2=SM;HOMSEQ=AGG;INSSEQ=.;TRANSCRIPT_ID=TSP2127603018,TSP1746195317;GENE_ID=TSG0000000001;SR_ID=m64135_220622_211525/166592832/ccs|m64135_220622_211525/81921303/ccs|m64135_220622_211525/2623225/ccs|m64135_220622_211525/157876553/ccs|m64135_220622_211525/6686285/ccs|m64135_220622_211525/26215277/ccs|m64135_220622_211525/114754580/ccs,m64135_220622_211525/166592832/ccs|m64135_220622_211525/81921303/ccs|m64135_220622_211525/2623225/ccs|m64135_220622_211525/157876553/ccs|m64135_220622_211525/6686285/ccs|m64135_220622_211525/26215277/ccs|m64135_220622_211525/114754580/ccs;SVMETHOD=ScanMST GT 0/1
...
Fields:
- LINKTYPE: The type of link, ICRL, ICTL, ITPL, ITTL
- SR: Supporting reads number
- SEGMENT1: ID for source transcript segment
- SEGMENT2: ID for target transcript segment
Checkpoint: Verify Your Identifications Worked¶
✅ Success indicators:
- VCF, GTF and FASTA files created
- Files are not empty
Congratulations!
You've successfully run your first ScanMST identification!
Troubleshooting¶
Encountered an issue? Check our Troubleshooting Guide for common problems and solutions.
Need Help?