# HG changeset patch # User devteam # Date 1393308199 18000 # Node ID 83c7b76f04775a93bfe1b54fccca2b2340f30c79 # Parent 8beb541cc918e8a1803242f3afb9b8c4b71e907f Uploaded diff -r 8beb541cc918 -r 83c7b76f0477 picard_FilterSamReads.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/picard_FilterSamReads.xml Tue Feb 25 01:03:19 2014 -0500 @@ -0,0 +1,94 @@ + +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. + + + +