# HG changeset patch # User devteam # Date 1393308678 18000 # Node ID 069428662d9cdae8e88cbaf2e653135a24875d9c # Parent 5e72111163df3bb481c698a9160f9cd6c1caba07 Uploaded diff -r 5e72111163df -r 069428662d9c picard_FilterSamReads.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/picard_FilterSamReads.xml Tue Feb 25 01:11:18 2014 -0500 @@ -0,0 +1,83 @@ + +Produces a new SAM or BAM file by including or excluding aligned reads or a list of reads names supplied in the READ_LIST_FILE from the INPUT SAM or BAM file. +picard + + generic_outformat_wrapper.sh FilterSamReads $output1 $outformat + FILTER="${conditionfilter.Filter}" + #if str( $READ_LIST_FILE ): + READ_LIST_FILE="${READ_LIST_FILE}" + #end if + #if str( $SORT_ORDER ): + SORT_ORDER="${SORT_ORDER}" + #end if + #if str( $WRITE_READS_FILES ): + WRITE_READS_FILES="${WRITE_READS_FILES}" + #end if + #if str( $OUTPUT ): + OUTPUT="${OUTPUT}" + #end if + + VALIDATION_STRINGENCY=LENIENT + QUIET=True + TMP_DIR="${__new_file_path__}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Picard documentation says: + + +FilterSamReads + +Produces a new SAM or BAM file by including or excluding aligned reads or a list of reads names supplied in the READ_LIST_FILE from the INPUT SAM or BAM file. + +Option Description +INPUT=File The SAM or BAM file that will be filtered. Required. +FILTER=Filter Filter. Required. Possible values: {includeAligned [OUTPUT SAM/BAM will contain aligned reads only. INPUT SAM/BAM must be in queryname SortOrder. (Note that *both* first and second of paired reads must be aligned to be included in the OUTPUT SAM or BAM)], excludeAligned [OUTPUT SAM/BAM will contain un-mapped reads only. INPUT SAM/BAM must be in queryname SortOrder. (Note that *both* first and second of pair must be aligned to be excluded from the OUTPUT SAM or BAM)], includeReadList [OUTPUT SAM/BAM will contain reads that are supplied in the READ_LIST_FILE file], excludeReadList [OUTPUT bam will contain reads that are *not* supplied in the READ_LIST_FILE file]} +READ_LIST_FILE=File Read List File containing reads that will be included or excluded from the OUTPUT SAM or BAM file. Default value: null. +SORT_ORDER=SortOrder SortOrder of the OUTPUT SAM or BAM file, otherwise use the SortOrder of the INPUT file. Default value: null. Possible values: {unsorted, queryname, coordinate} +WRITE_READS_FILES=Boolean Create .reads files (for debugging purposes) Default value: true. This option can be set to 'null' to clear the default value. Possible values: {true, false} +OUTPUT=File SAM or BAM file to write read excluded results to Required. + + + +