Skip to content

Conversation

@pamelaxu213
Copy link
Member

added mosaic option to generate wes.mosaic report

#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

#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
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.

3 participants