Skip to content

Commit

Permalink
Added expected overlap parameter to the python step
Browse files Browse the repository at this point in the history
  • Loading branch information
Asa Thibodeau authored and ajt986 committed Sep 22, 2021
1 parent f5b8357 commit 2d40908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AMULET.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ "${BAMFILE: -4}" == ".bam" ]; then
#Another issue is duplicate marking. Better duplicate marking needs to account for the cell barcodes
#Otherwise more reads are marked as duplicates when they are actually unique to that cell
java -jar ${SCRIPTPATH}/snATACOverlapCounter.jar ${FORCESORTED}--expectedoverlap ${EXPECTEDOVERLAP} --bambc ${BAMBC} --bcidx ${BCIDX} --cellidx ${CELLIDX} --iscellidx ${ISCELLIDX} --mapqthresh ${MAPQTHRESH} --maxinsertsize ${MAXINSERT} --startbases ${STARTBASES} --endbases ${ENDBASES} ${BAMFILE} ${BCMAP} ${CHRLIST} ${OUTDIR}
python3 ${SCRIPTPATH}/AMULET.py --rfilter ${REPFILTER} ${OUTDIR}/Overlaps.txt ${OUTDIR}/OverlapSummary.txt ${OUTDIR}
python3 ${SCRIPTPATH}/AMULET.py --expectedoverlap ${EXPECTEDOVERLAP} --rfilter ${REPFILTER} ${OUTDIR}/Overlaps.txt ${OUTDIR}/OverlapSummary.txt ${OUTDIR}

elif [ "${BAMFILE: -4}" == ".tsv" ] || [ "${BAMFILE: -4}" == ".txt" ] ||[ "${BAMFILE: -7}" == ".tsv.gz" ] || [ "${BAMFILE: -7}" == ".txt.gz" ]; then
if [ ${STARTBASES} == "DEFAULT" ]; then
Expand All @@ -80,7 +80,7 @@ elif [ "${BAMFILE: -4}" == ".tsv" ] || [ "${BAMFILE: -4}" == ".txt" ] ||[ "${BAM
fi

python3 ${SCRIPTPATH}/FragmentFileOverlapCounter.py --maxinsertsize ${MAXINSERT} --expectedoverlap ${EXPECTEDOVERLAP} --startbases ${STARTBASES} --endbases ${ENDBASES} ${BAMFILE} ${BCMAP} ${CHRLIST} ${OUTDIR}
python3 ${SCRIPTPATH}/AMULET.py --rfilter ${REPFILTER} ${OUTDIR}/Overlaps.txt ${OUTDIR}/OverlapSummary.txt ${OUTDIR}
python3 ${SCRIPTPATH}/AMULET.py --expectedoverlap ${EXPECTEDOVERLAP} --rfilter ${REPFILTER} ${OUTDIR}/Overlaps.txt ${OUTDIR}/OverlapSummary.txt ${OUTDIR}
else
echo "Unsupported file formatted.";
fi
Expand Down

0 comments on commit 2d40908

Please sign in to comment.