straglr_compare.md

April 16, 2024 ยท View on GitHub

Comparing Straglr results

straglr_compare.py is provided to compare Straglr results from test sample against parent(s) or normal control(s) for detection of de novo expansions:

  • corresponding alleles between test and control are found by intersecting their Straglr .tsv outputs using BEDTools. Loci that overlap at least 90% with each other are considered the sa me
  • actual sizes or copy numbers (actual_repeat column in .tsv) detected in each supporting read for each test allele are compared against their counterparts in the control using a 2-sam ple t-test
  • test alleles deemed to be larger than their counterparts in all control(s) by t-test are reported
  • expanded alleles only reported in the test sample but not the control(s) are also reported in the output
  • annotation file (GTF) and promoter/enhancer coordinates (BED) can be provided by user so that only expansions overlapping the provided features are reported

Usage

straglr_compare.py <test_straglr.tsv> <control_straglr.tsv> [control_straglr.tsv ...] 
optional parameterdescriptionDefault
use_copy_numberuse copy number instead of sizeFalse (i.e. size used)
min_expansionminimum expansion100
min_supportminimum number of support reads in sample event4
skip_chromsskip results from chromosomes specified (e.g. chrY)None
pval_cutoffp-value cutoff for testing T-test hypothesis0.001
gtfGTF file of annotationNone
promotersBED file of promotersNone
enhancersBED file of enhancersNone
old_versionresults from original version (v1.0) of Straglr used (tsv output different)False

Output

columndescription
chromchromosome of test allele
startstart coordinate of test allele
endend coordinate of test allele
repeatrepeat motif of test allele
ref_sizereference size (start - end + 1)
test_alleleallele size (or copy number) in test sample
test_allele_supportnumber of support reads for test allele in sample
expansiontest_allele - ref_size + 1
control_allelescontrol allele size(s)/copy numbers(s) e.g. c1a,c1b;c2a,c2b where c1a and c2a are alleles from control1; c2a,c2b are alleles from control2, etc. "-" if test allele no
t found in control(s)
pvalst-test p-val of test allele against every control allele. Output format the same as control_alleles. "-" if test allele not found in control(s)