Changeset 5771
- Timestamp:
- Dec 3, 2019, 11:54:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other/pipeline/trunk/mut_stats.py
r5769 r5771 4 4 5 5 Script that calculates statistics for variants in a list of VCF files. 6 The script need t woparameters:6 The script need three parameters: 7 7 8 8 1: Path to text file with list of VCF files to process (se below) 9 9 2: Path to progress reporting file 10 3: Path to a log file 10 11 11 12 The text file given as the first parameter should be a tab-separated … … 102 103 103 104 progressFile = sys.argv[2] 105 logFile = sys.argv[3] 104 106 105 107 # Load the VCF files and count the variants in them … … 116 118 nextProgressReport = time.time()+15 117 119 loadVcf(cols[1], cols[0]) 120 121 # Write the log file 122 with open(logFile, 'w') as log: 123 log.write("NumberOfVCF: {0}\n".format(tots[0])) 124 log.write("NumberOfPatients: {0}\n".format(tots[1])) 125 log.write("NumberOfVariants: {0}\n".format(len(allVariants))) 118 126 119 127 # Generate header for the output VCF
Note: See TracChangeset
for help on using the changeset viewer.