Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mosaic pipeline #42

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Mosaic pipeline #42

wants to merge 8 commits into from

Conversation

pamelaxu213
Copy link
Member

added mosaic option to generate wes.mosaic report

@@ -31,10 +31,14 @@ fi

#if pipeline is cre, filter out variants only called by one of freebayes, samtools, platypus
callers=`gemini db_info $file | grep -w "variants" | grep -w "callers"`
if [ ! -z "$callers" ]
if [ ! -z "$callers" ] && [ "$type" != "wes.mosaic" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does 'callers' exist in the mosaic gemini db? If so you can remove && [ "$type" != "wes.mosaic" ]

Copy link
Member Author

@pamelaxu213 pamelaxu213 May 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since mosaic pipeline uses only one caller, I didn't set "callers" variable. Therefore there is no callers in gemini db_info

then
callers="v.callers"
caller_filter="and v.callers not in ('freebayes', 'samtools', 'platypus')"
elif [ ! -z "$callers" ] && [ "$type" == "wes.mosaic" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the above is true, you can remove this conditional block

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -33,10 +33,14 @@ gemini query -q "select name from samples order by name" $file > samples.txt

#if pipeline is cre, filter out variants only called by one of freebayes, samtools, platypus
callers=`gemini db_info $file | grep -w "variants" | grep -w "callers"`
if [ ! -z "$callers" ]
if [ ! -z "$callers" ] && [ "$type" != "wes.mosaic" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comments as above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

cre.sh Outdated
@@ -97,6 +97,9 @@ function f_cleanup
ln -s ${family}-precalled.db ${family}-ensemble.db
ln -s ${family}-precalled-annotated-decomposed.vcf.gz ${family}-ensemble-annotated-decomposed.vcf.gz
ln -s ${family}-precalled-annotated-decomposed.vcf.gz.tbi ${family}-ensemble-annotated-decomposed.vcf.gz.tbi
#elif [ "$type" == "wes.mosaic"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these lines?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pamelaxu213 pamelaxu213 reopened this Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants