# HG changeset patch # User devteam # Date 1393364272 18000 # Node ID eaa932566ace6397d982420886c900b29715d8d4 # Parent 813fcb9201f14e1f6b7c51c06a31b7ddb9bf1a45 Uploaded diff -r 813fcb9201f1 -r eaa932566ace picard_FilterSamReads.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/picard_FilterSamReads.xml Tue Feb 25 16:37:52 2014 -0500 @@ -0,0 +1,81 @@ + +Includes or excludes aligned reads or a list of reads from a BAM or SAM file +picard + + generic_outformat_wrapper.sh FilterSamReads $outFile $outputFormat + FILTER="${conditionfilter.Filter}" + INPUT=$input_file + #if $conditionfilter.Filter == "includeReadList" or $conditionfilter.Filter == "excludeReadList" : + #if str( $READ_LIST_FILE ): + READ_LIST_FILE="${READ_LIST_FILE}" + #end if + #end if + + #if str( $SORT_ORDER ): + SORT_ORDER="${SORT_ORDER}" + #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. + + + +