| 138 | === Remove or mark duplicate reads in bam files === |
| 139 | |
| 140 | {{{ |
| 141 | # Using picard tools, mark duplicates only, this is the default |
| 142 | /pathtojava/java -jar /path_to_picard-tools/picard.jar MarkDuplicates I=input.bam O=ouput.marked_duplicates.bam \ |
| 143 | M=ouputFileWithStats_metrics.txt REMOVE_DUPLICATES=FALSE |
| 144 | |
| 145 | |
| 146 | # Using picard tools, remove duplicates |
| 147 | /pathtojava/java -jar /path_to_picard-tools/picard.jar MarkDuplicates I=input.bam O=ouput.marked_duplicates.bam \ |
| 148 | M=ouputFileWithStats_metrics.txt REMOVE_DUPLICATES=TRUE |
| 149 | |
| 150 | }}} |
| 151 | |