tgen / pegasusPipe

MIT License
1 stars 0 forks source link

checkProjectComplete.sh #38

Open denriquez opened 7 years ago

denriquez commented 7 years ago

There is a bug that occurs only when the normal/control sample name contains "-." This bug makes this script look for a non-existent vcfMergerAC (alleleCount version) pass file. The problem occurs in this section:

        usableName2=`echo $usableName | cut -d '-' -f1-2`
        vcfACmergeTrack=$runDir/vcfMerger/$usableName2/$usableName2
        if [ ! -e $vcfACmergeTrack.vcfMergerACPass ] ; then
                echo "### vcfMerger alleleCountPass does not exist on allele output!"
                echo "### Missing file: $vcfACmergeTrack.vcfMergerACPass"
                ((missingvcfMergerAC++))

The naming convention is usually normal/control and tumor/affected separated with "-"

denriquez commented 7 years ago

Dang it! I forgot the code itself had backticks that threw off the format.

PedalheadPHX commented 7 years ago

Is it better to add the check to the start of the pipeline? Then error if this is the case?

Sent from a Handheld Device

On Aug 5, 2017, at 20:00, denriquez notifications@github.com wrote:

There is a bug that occurs only when the normal/control sample name contains "-." This bug makes this script look for a non-existent vcfMergerAC (alleleCount version) pass file. The problem occurs in this section: usableName2=echo $usableName | cut -d '-' -f1-2vcfACmergeTrack=$runDir/vcfMerger/$usableName2/$usableName2 if [ ! -e $vcfACmergeTrack.vcfMergerACPass ] ; then echo "### vcfMerger alleleCountPass does not exist on allele output!" echo "### Missing file: $vcfACmergeTrack.vcfMergerACPass" ((missingvcfMergerAC++)) The naming convention is usually normal/control and tumor/affected separated with "-"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tgen/pegasusPipe/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1RHGBvMOLZH3yhcR3fmIE-Yv3VrEMnks5sVSxcgaJpZM4Ounwx .

--

This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged, including patient health information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you.

denriquez commented 7 years ago

Yes, actually Ryan did talk about adding more validation steps which is definitely a good idea because of problems like this.