PharmGKB / PharmCAT

The Pharmacogenomic Clinical Annotation Tool
Mozilla Public License 2.0
120 stars 39 forks source link

How to use Astrolabe's output and pipe it into PharmCAT? #96

Closed joseph-yclam closed 1 year ago

joseph-yclam commented 2 years ago

Yields: image

As well, input using: java -jar /localhome/PharmCAT-1.3.0/lib/pharmcat-1.3.0-all.jar -vcf /export/CIM_output/BAM_hg38/pharmvar_input/CIM001.pharmact.input.vcf -a /localhome/joseph.lam1/astrolabe-0.8.7.2/etc/GRCh38/CYP2D6/locationData.tsv -o /localhome/joseph.lam1/PharmCAT-1.3.0/PharmCAT_Outputs -f pharm_out001

Yields: image

I am planning to run this on multiple samples but I am unsure how to use Astrolabe's output?

whaleyr commented 2 years ago

First: I recommend you grab the most recent version of PharmCAT and use that (v1.5.1 at this time).

Second: from the error message, it looks like your sample data includes positions for CYP4F2 and you're also specifying a call from the outside call file (astrolabe). We're doing some work on the outside call component so it's a little volatile at the moment, but currently you have to supply one or other other. This may change but for now that's the way it's working. So take the CYP4F2 positions out of the sample file or take the call out of the astrolabe file and then try re-running it and that should do it. Please let me know how it goes.

joseph-yclam commented 2 years ago

@whaleyr Thank you so much for your response! I'm sorry, just to clarify, when you say I have to supply one or the other, you mean I have to supply either the sample file OR the call from the outside call file, right? And, in that case, since I want to use Astrolabe's call sample to determine CYP2D6 calls for PharmCAT, I would just use Astrolabe's outside call file?

whaleyr commented 2 years ago

You can supply both input files. However, if you supply CYP2D6 variants in the VCF file, don't include a CYP2D6 call in the outside caller TSV file. Conversely, if you supply a CYP2D6 call in the outside caller TSV file, don't supply CYP2D6 positions in the VCF file.

markwoon commented 1 year ago

We've updated documentation on this: https://pharmcat.org/using/Outside-Call-Format/

If that's not sufficient for your needs, please open a new issue with details.