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

Error while running Run.sh #3

Open
snashraf opened this issue Sep 21, 2022 · 9 comments
Open

Error while running Run.sh #3

snashraf opened this issue Sep 21, 2022 · 9 comments

Comments

@snashraf
Copy link

Hey !!

I was trying to run the command and getting the below error.

` $HP_SDIR/run.sh > run.all.sh

  • test -s /gpfs/scratch/najeeb/VCFAfilesAnnotated/withKhalid/QGPMito/in.txt
  • '[' 2 '!=' 0 ']'
  • '[' 2 '!=' 1 ']'
  • '[' 2 '!=' 2 ']'
  • '[' mutect2 '!=' mutect2 ']'
  • '[' gridss ']'
  • '[' gridss '!=' gridss ']'
  • perl -e '!$ENV{HP_T1} or $ENV{HP_T1}=~/^\d\d$/ or die "ERROR : HP_T1 between 00 and 99\n"'
  • perl -e '!$ENV{HP_T2} or $ENV{HP_T2}=~/^\d\d$/ or die "ERROR : HP_T2 between 00 and 99\n"'
  • perl -e '!$ENV{HP_T3} or $ENV{HP_T3}=~/^\d\d$/ or die "ERROR : HP_T3 between 00 and 99\n"'
  • test -w /gpfs/scratch/najeeb/VCFAfilesAnnotated/withKhalid/QGPMito/bams/
    `
    What could be the reason for this?

Regards,
Najeeb

@dpuiu
Copy link
Owner

dpuiu commented Sep 23, 2022

Hi Najeeb,

"test -w" tests if the user has write permissions to the align directory. It looks like your directory is read only. The pipeline needs to generate .idxstats and .count files for each sample (.bam file). If giving directory write permission is not an option, you create a new dir and symlink the bam/bai files.

@snashraf
Copy link
Author

snashraf commented Sep 23, 2022 via email

@dpuiu
Copy link
Owner

dpuiu commented Sep 23, 2022

Najeeb,

Have you set
export HP_V=gridss
in init.sh?

If so, the problem might be related to the R dependency
$ which Rscript
/usr/bin/Rscript

I have to update scripts/install_sysprerequisites.sh and add
apt-get install -y -q r-base

###################################################################################
For the large job, I would suggest running a few samples first and check the completion status.

@snashraf
Copy link
Author

Hi Daniela,

I was able to run the pipeline completely.
I want to know which file I can use to understand the CN ( Copy Number ) information.

Regards,
Najeeb

@dpuiu
Copy link
Owner

dpuiu commented Sep 28, 2022 via email

@snashraf
Copy link
Author

snashraf commented Nov 3, 2022

Thanks, Daniela,

I have run the analysis, and these are the files generated by the MitoHPC. I just want to understand what each file contains. Why some files named as ".mutect2.mutect2"?

SI000020000010_02000865410.mutect2.00.vcf
SI000020000010_02000865410.mutect2.fix.vcf
SI000020000010_02000865410.mutect2.max.vcf
SI000020000010_02000865410.mutect2.mutect2.00.vcf
SI000020000010_02000865410.mutect2.mutect2.fix.vcf
SI000020000010_02000865410.mutect2.mutect2.orig.vcf
SI000020000010_02000865410.mutect2.mutect2.vcf
SI000020000010_02000865410.mutect2.orig.vcf
SI000020000010_02000865410.mutect2.vcf

@dpuiu
Copy link
Owner

dpuiu commented Nov 3, 2022

By default MitoHPC runs 2 iteration. The 1st iteration output files are called sample.mutect2.* whjile the 2nd iteration output files are called sample.mutect2.mutect2.*
In the 1st iteration , the rCRS sequence (chrM) is used as reference for alignment/SNV calling. For each sample, a new consensus sequence is generated , which is then used as reference in the 2nd iteration. Using the sample consensus should be better for accurate heteroplasmy calling. The 2nd iteration detects only heteroplamic SNVs. However, as output, we readjust the coordinates relative to rCRS and merge them withe the homoplasmies detected in the 1st iteration.

@snashraf
Copy link
Author

snashraf commented Nov 3, 2022

So if I want to have a final file containing both heteroplasmi and homoplasmi than file I should use? And same question also for mutserve?

@dpuiu
Copy link
Owner

dpuiu commented Nov 3, 2022

Both SI000020000010_02000865410.mutect2.00.vcf and SI000020000010_02000865410.mutect2.mutect2.00.vcf will contain both homoplasmies and heteroplamies . However SI000020000010_02000865410.mutect2.mutect2.00.vcf should be more accurate,
Regarding mutserve, unfortunately it does not allow for a custom consensus sequence. If HP_M="mutserve", you need to set "HP_I=1"

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

No branches or pull requests

2 participants