This PR mainly adds a new option --prepareGraph to HLA-LA.pl which invokes the action prepareGraph inside of the HLA_LA binary, so we don't have to call the binary ourselves. This is especially handy when using a conda package, since the binary is located at path/to/conda/opt/hla-la/bin/HLA-LA and not in the conda/bin itself.
Calling HLA-LA.pl with --prepareGraph 1 should do the job here. This works both when defining a custom graph directory as well as when using the default graph directory.
Second, I added a check for custom graph directories to handle both relative and absolute paths here.
Then, I fixed the samtools version check in findPath.pm and HLA-LA.pl according to the existing fix used in the bioconda recipe patch - this should work now for samtools 1.10+
Let me know what you think, @AlexanderDilthey, I hope this is helpful!
This PR mainly adds a new option
--prepareGraph
toHLA-LA.pl
which invokes the actionprepareGraph
inside of the HLA_LA binary, so we don't have to call the binary ourselves. This is especially handy when using a conda package, since the binary is located atpath/to/conda/opt/hla-la/bin/HLA-LA
and not in theconda/bin
itself.Calling HLA-LA.pl with
--prepareGraph 1
should do the job here. This works both when defining a custom graph directory as well as when using the default graph directory.Second, I added a check for custom graph directories to handle both relative and absolute paths here.
Then, I fixed the
samtools
version check infindPath.pm
andHLA-LA.pl
according to the existing fix used in the bioconda recipe patch - this should work now forsamtools 1.10+
Let me know what you think, @AlexanderDilthey, I hope this is helpful!