Skip to content

Commit

Permalink
Ensure that gaussdca use the active project environment
Browse files Browse the repository at this point in the history
  • Loading branch information
diegozea committed May 27, 2021
1 parent 18e5777 commit 2146ae3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MIToS"
uuid = "51bafb47-8a16-5ded-8b04-24ef4eede0b5"
version = "2.8.3"
version = "2.8.4"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
8 changes: 6 additions & 2 deletions src/Information/Externals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ Baldassi, Carlo, Marco Zamparo, Christoph Feinauer, Andrea Procaccini, Riccardo
"Fast and accurate multivariate Gaussian modeling of protein families: predicting residue contacts and protein-interaction partners."
PloS one 9, no. 3 (2014): e92721.
"""
function gaussdca(msa; juliapath::String=joinpath(Sys.BINDIR,Base.julia_exename()), kargs...)
function gaussdca(
msa;
juliapath::String=joinpath(Sys.BINDIR,Base.julia_exename()),
project::String=Base.active_project(),
kargs...)
base_name = tempname()
if Sys.iswindows()
base_name = escape_string(base_name)
Expand All @@ -37,7 +41,7 @@ function gaussdca(msa; juliapath::String=joinpath(Sys.BINDIR,Base.julia_exename(
write(msa_file, msa, FASTA)
try
_create_script(script_file, msa_file, jdl_file; kargs...)
run(`$juliapath $script_file`)
run(`$juliapath --project=$project $script_file`)
pairedvalues = open(deserialize, jdl_file, "r")
for (i,j,value) in pairedvalues
plm[i,j] = value
Expand Down

2 comments on commit 2146ae3

@diegozea
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/37696

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.8.4 -m "<description of version>" 2146ae3ae871d294f50d222d6760facbd730c7dd
git push origin v2.8.4

Please sign in to comment.