Skip to content

Commit

Permalink
Merge pull request #51 from Puriney/patch-1
Browse files Browse the repository at this point in the history
Enable PE/SE choice in call_peak.sh
  • Loading branch information
wbaopaul authored Nov 23, 2021
2 parents b6380d9 + 63d0421 commit da54d88
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/call_peak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ if [ "${PEAK_CALLER}" = 'MACS2' ];then
unset PYTHONPATH
work_dir=${peaks_dir}/MACS2
mkdir -p $work_dir
${MACS2_PATH}/macs2 callpeak -t $input_bam --outdir $work_dir -n $out_prefix -f BAM $MACS2_OPTS
if [ ${isSingleEnd} = 'TRUE' ]; then
${MACS2_PATH}/macs2 callpeak -t $input_bam --outdir $work_dir -n $out_prefix -f BAM $MACS2_OPTS
fi

if [ ${isSingleEnd} = 'FALSE' ]; then
${MACS2_PATH}/macs2 callpeak -t $input_bam --outdir $work_dir -n $out_prefix -f BAMPE $MACS2_OPTS
fi

#${MACS2_PATH}/macs2 callpeak -t $input_bam --outdir $peaks_dir -f BAM $MACS2_OPTS --nomodel --extsize 147

## remove peaks whose chromosome is not list in the chrom_size file
Expand Down

0 comments on commit da54d88

Please sign in to comment.