# HG changeset patch # User devteam # Date 1393307642 18000 # Node ID 6a9faa9d07dd35083981b828ecaf9a55ab4dfaf0 # Parent d952b87b3d187e6a1aa65f0eda5f9b7851cc60e5 Uploaded diff -r d952b87b3d18 -r 6a9faa9d07dd picard_FilterSamReads.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/picard_FilterSamReads.xml Tue Feb 25 00:54:02 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. + + + +