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

temporary files should go to specifically folder. #78

Closed
yujun2017 opened this issue Dec 30, 2019 · 15 comments
Closed

temporary files should go to specifically folder. #78

yujun2017 opened this issue Dec 30, 2019 · 15 comments

Comments

@yujun2017
Copy link
Contributor

Tbprofiler will be failed if we ran it in tomcat. we do find there is a bug in TBProfiler and we already fixed the bug and want to know if we can upload changed file.

@jodyphelan
Copy link
Owner

Hi @yujun2017, thanks for looking into fixing the issue. Do you have a fork of the repo you can create a pull request from?

@yujun2017
Copy link
Contributor Author

yujun2017 commented Dec 31, 2019 via email

@jodyphelan
Copy link
Owner

What you should do is to:

  1. Fork the repository. I see you have a fork already but it is quite an old version.
  2. Make the changes and commit
  3. Create a pull request. More info here

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 2, 2020 via email

@jodyphelan
Copy link
Owner

jodyphelan commented Jan 2, 2020

Hi John,

Sure! You can upload to gist and share the url. If you could put in some comments where you have made changes that would be great!

Jody

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 3, 2020 via email

@jodyphelan
Copy link
Owner

jodyphelan commented Jan 3, 2020

Hi John,

At the moment the code from your fork seems to fail.
Do you want the VCF files to be made in the directory set with -d? If so this is already fixed in the latest version see f86bdda.

The current code will append %(prefix)s during the bcftools call command as below:

self.calling_cmd = "bcftools mpileup -f %(ref_file)s -Bq8 -a DP,AD -r {1} %(bam_file)s | bcftools call -mv | bcftools filter -e 'FMT/DP<10' | bcftools filter -e 'IMF < 0.7' -s 0 -Oz -o %(prefix)s.{2}.vcf.gz" % vars(self)

If we also it %(prefix)s into the self.windows_cmd variable it will try to save the VCFs to a folder which does not exist. For example if we set -d /save_dir then it will try to create the VCF:

/save_dir/save_dir/Chromosome_XX_YY.vcf.gz

Have you tested tomcat with tb-profiler v2.8?

Thanks for looking into it!

@jodyphelan
Copy link
Owner

Are installing via conda? I noticed that it isn't updated with this patch yet!

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 3, 2020 via email

@jodyphelan
Copy link
Owner

Ah ok, this should be fixed in the latest commit on github but not on conda yet. I'll update the conda recipe and let you know when it is finished.

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 3, 2020 via email

@jodyphelan
Copy link
Owner

It should be released on conda now. Please check and let me konw if it works ok.

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 4, 2020 via email

@yujun2017
Copy link
Contributor Author

yujun2017 commented Jan 6, 2020 via email

@jodyphelan
Copy link
Owner

Perfect!

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