You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### First release for megSAP
- added support for straglr 1.5.0
- changed output folder structure to match ExpansionHunter/REViewer output
### Plot modification
- changed the output format of plots
- modified size of plots
- added pathogenic threshold in plots
### Bugfix: Deterministic Plots
- set a constant hashsalt (seed) to make SVG plot (node names) deterministic
### Bugfix: Fixed length calculation of wt/pathogenic threshold
- The length of pathogenic range and wildtype is now calculated based on the reference motif since the repeat unit length may change in straglr 1.5.1.
#Argument parser for command line interface including necessary file and options
33
+
#Argument parser for command line interface including necessary file and options
33
34
34
35
parser=argparse.ArgumentParser()
35
36
36
-
#These arguments are always required
37
+
#These arguments are always required
37
38
38
39
parser.add_argument("path_input_bed", type=lambdax: is_valid_file(parser, x, "bed"), help="Path to input bed file")
39
40
parser.add_argument("path_input_tsv", type=lambdax: is_valid_file(parser, x, "tsv"), help="Path to input tsv file")
40
41
parser.add_argument("loci_file", type=lambdax: is_valid_file(parser, x, "bed"), help="Path to Loci file used for straglr analysis")
41
42
parser.add_argument("-o", "--output", type=str, required=True, help="Path to output folder")
42
43
43
-
#These Arguments are optional and produce histograms for each locus and sort the output .txt file based on a normalized increase in repeats respectively
44
+
#These Arguments are optional and produce histograms for each locus and sort the output .txt file based on a normalized increase in repeats respectively
44
45
45
46
parser.add_argument("--hist", action="store_true", help="Plots histograms of pathogenic expansions")
46
47
parser.add_argument("--score", action="store_true", help="Expansion in output file is sorted by normalized size difference score")
47
48
48
-
#Activates new clustering method
49
+
#Activates new clustering method
49
50
50
51
parser.add_argument("--altclust", action="store_true", help="Uses Thomas Clustering")
51
52
parser.add_argument("-c", "--cutoff", type=int, default=2, help="Sets number of reads cutoff when clustering unimodal or bimodal allele read frequencies")
52
53
53
-
#These arguments are required for producing the allele length visualization
54
+
#These arguments are required for producing the allele length visualization
54
55
55
56
parser.add_argument("--alleles", action="store_true", help="Turns on the allele visualization")
56
57
parser.add_argument("--bam", type=str, help="Location of Bam file of interest")
0 commit comments