smith-chem-wisc / Spritz

Software for RNA-Seq analysis to create sample-specific proteoform databases from RNA-Seq data
https://smith-chem-wisc.github.io/Spritz/
MIT License
7 stars 11 forks source link

Error in rule build_transfer_mods #203

Closed llniu closed 3 years ago

llniu commented 3 years ago

Running Spritz in terminal with the following config parameters:

sra: [SRR629563] 
fq: [] 
sra_se: [] 
fq_se: [] 
analysisDirectory: [AnalysisFolder] 
species: "Homo_sapiens"
genome: "GRCh38"
release: "100"
organism: "human" 
analyses: [isoform,variant]
spritzversion: "0.2.3"

and found "Error in rule build_transfer_mods":

    jobid: 27
    output: TransferUniProtModifications/TransferUniProtModifications/bin/Release/netcoreapp3.1/TransferUniProtModifications.dll
    log: data/TransferUniProtModifications.build.log (check log file(s) for error message)
    shell:
        (cd TransferUniProtModifications && dotnet restore && dotnet build -c Release TransferUniProtModifications.sln) &> data/TransferUniProtModifications.build.log
        (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)
llniu commented 3 years ago

The script skipped the error message and continued to run as I am typing this message.

acesnik commented 3 years ago

Could you share the file data/TransferUniProtModifications.build.log?

If you are running it on Mac, do you have dotnet installed? https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-3.1.403-macos-x64-installer

llniu commented 3 years ago

es I installed dotnet but it seems there are issues executing it.

The log content is "/bin/bash: dotnet: command not found" I set interactive shell to /bin/bash instead of the default login shell. Can this be the problem?

When I type dotnet info in terminal, I got below error messages:

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET Core program, but dotnet-info does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
acesnik commented 3 years ago

Hmm, I think it installs to /usr/local/bin by default on Mac. Is that in your PATH if you check with echo $PATH?

acesnik commented 3 years ago

If you're running Windows or Linux, it should be set up automatically by conda.

acesnik commented 3 years ago

If /usr/local/bin/ is on your PATH environment variable (echoed by echo $PATH), I'd recommend downloading and running the dotnet installer linked above to see if that helps.

llniu commented 3 years ago

Adding .NET to PATH solved the problem :) Thanks! Reference: https://docs.microsoft.com/en-us/dotnet/core/install/macos