Changes between Version 104 and Version 105 of SOPs/atac_Seq


Ignore:
Timestamp:
10/31/23 09:33:57 (17 months ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/atac_Seq

    v104 v105  
    5353# Use alignmentSieve from [[https://deeptools.readthedocs.io/en/develop/|DeepTools]]
    5454#   "--samFlagInclude 2" => keep only properly paired reads
    55 alignmentSieve -b file.bam --minMappingQuality 30 --samFlagInclude 2 -o MAPQ30.bam
     55alignmentSieve -b Mapped_reads.bam --minMappingQuality 30 --samFlagInclude 2 -o Mapped_reads.MAPQ30.bam
    5656
    5757# Use samtools (for single-end reads)
    58 samtools view -b -q 30 file.bam > MAPQ30.bam
     58samtools view -b -q 30 Mapped_reads.bam > Mapped_reads.MAPQ30.bam
    5959}}}
    6060
    6161  * Remove duplicates with Picard's 'MarkDuplicates' or 'samtools rmdup'.
    6262{{{
    63 java -jar /usr/local/share/picard-tools/picard.jar MarkDuplicates I=foo.bam O=noDups.bam M=foo.marked_dup_metrics.txt REMOVE_DUPLICATES=true
     63java -jar /usr/local/share/picard-tools/picard.jar MarkDuplicates I=Mapped_reads.bam O=Mapped_reads.noDups.bam M=foo.marked_dup_metrics.txt REMOVE_DUPLICATES=true
    6464}}}
    6565  * Check deduplication level with [[http://barcwiki.wi.mit.edu/wiki/SOPs/qc_shortReads | 'fastqc']].
     
    6767  * Remove reads mapped to mitochondria.
    6868{{{
    69 samtools view -h file.bam | grep -v chrM | samtools view -b -h -f 0x2 - | samtools sort - > file.sorted.bam
     69samtools view -h Mapped_reads.bam | grep -v chrM | samtools view -b -h -f 0x2 - | samtools sort - > Mapped_reads.sorted.bam
    7070}}}
    7171
    7272  * Index the bam file.
    7373{{{
    74 samtools index file.sorted.bam
     74samtools index Mapped_reads.sorted.bam
    7575}}}
    7676
     
    141141. /nfs/BaRC_Public/conda/start_barc_conda
    142142}}}
    143       * Before running ENCODE pipeline, verify there is no preexisting      conda startup code with the command below:
     143      * Before running the ENCODE pipeline, verify there is no preexisting      conda startup code with the command below:
    144144{{{
    145145conda env list
    146146}}}
    147147       You have no preexisting conda if you get "conda: command not found". Otherwise, log out, log back in, start the new conda instance, and activate encode-atac-seq-pipeline
    148       * Ignore the developer's instructions, use your home directory for conda and the pipeline.
     148      * Ignore the developer's instructions and use your home directory for conda and the pipeline.
    149149{{{
    150150conda activate encode-atac-seq-pipeline
    151151}}}
    152       * Run. Files could be url or fullpath. [[https://github.com/ENCODE-DCC/atac-seq-pipeline/blob/master/docs/input.md | Detail information about .json file]]
     152      * Run. Files could be url or fullpath. [[https://github.com/ENCODE-DCC/atac-seq-pipeline/blob/master/docs/input.md | Detailed information about .json file]]
    153153{{{
    154154caper run /nfs/BaRC_Public/atac-seq-pipeline/atac.wdl -i sample.json