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

user reported issue on R script command being invalid #26

Closed
mshakya opened this issue May 22, 2023 · 7 comments
Closed

user reported issue on R script command being invalid #26

mshakya opened this issue May 22, 2023 · 7 comments
Assignees

Comments

@mshakya
Copy link
Collaborator

mshakya commented May 22, 2023

Loading required package: limma

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Usage: script.R [options]

script.R: error: Error in getopt(spec = spec, opt = args) : short flag "n" is invalid

mshakya added a commit that referenced this issue May 22, 2023
@mshakya mshakya self-assigned this May 22, 2023
@mshakya
Copy link
Collaborator Author

mshakya commented May 24, 2023

Found the potential issue. It could be due to differences in the versions of the workflow. Fixed the issue and running a test now. Will update and close the issue, if the test finishes without any issues.

@mshakya
Copy link
Collaborator Author

mshakya commented May 31, 2023

Issue fixed. Replaced Rscript with a python script.
Waiting for it to be implemented in front end. Will close the issue once the user successfully tests and runs the project.

@jzrapp
Copy link

jzrapp commented May 31, 2023

Hi Migun,
I'm not sure of it's implemented already? I went ahead and re-ran a test dataset and it still failed, but the error message changed:

Generate WDL and inputs json
submit workflow to cromwell
Cromwell job status: Running
Cromwell job status: Failed
nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.cs2

nmdc_metat.create_gffdb

nmdc_metat.bbm
/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/execution/script: line 23: [[true: command not found
java -ea -Xmx99638m -Xms99638m -cp /bbmap/current/ align2.BBMap build=1 overwrite=true fastareadlen=500 nodisk=true interleaved=true t=16 samestrandpairs=f ambiguous=best in=/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/inputs/1036294541/RNA01.anqrpht.fastq.gz ref=/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/inputs/-891099361/RNA01.contigs.fa out=mapped_sorted.bam covstats=covstats.txt bamscript=to_bam.sh nhtag=t
Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/tmp.9c24ad35
Executing align2.BBMap [build=1, overwrite=true, fastareadlen=500, nodisk=true, interleaved=true, t=16, samestrandpairs=f, ambiguous=best, in=/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/inputs/1036294541/RNA01.anqrpht.fastq.gz, ref=/expanse/projects/nmdc/cromwell/cromwell-executions/main_workflow/a304e98b-08cf-4450-816c-872995ae04f0/call-nmdc_metat/Metatranscriptome.nmdc_metat/5d1b9207-1411-4f16-a8b0-4986ef659a59/call-bbm/inputs/-891099361/RNA01.contigs.fa, out=mapped_sorted.bam, covstats=covstats.txt, bamscript=to_bam.sh, nhtag=t]

....

@mshakya mshakya changed the title user reported issue on R script command n being invalid user reported issue on R script command being invalid Jun 1, 2023
@mshakya
Copy link
Collaborator Author

mshakya commented Jun 1, 2023

@jzrapp , the code had not been transferred to front end yet when you ran it. It has been transferred and we are running some tests to see if a runs complete. Will ping here if test runs completes without any issues. Thanks for your patience.

@mshakya
Copy link
Collaborator Author

mshakya commented Jun 1, 2023

Hi @jzrapp , please try your run again. Our test completed without any issues. During checking the results for the test run, I also found read counts per gene were null. Please let me know if you see the same with your dataset.

i will close this issue upon your successful run, and will open a different issue for tracking the read count issue. Thanks.

@jzrapp
Copy link

jzrapp commented Jun 1, 2023

Hi @mshakya, I started several metaT analysis workflows and most of them have completed successfully. Two failed (giving 2 different error logs) and I'm re-running them once more. The files should be similar to those that completed successfully, so it doesn't make sense to me that these two did not complete.
As far as I can see, there is no read count issue in the successful runs. Could you point me to the specific output file that you are looking for? The stats.tsv shows numbers and features >0.

@mshakya
Copy link
Collaborator Author

mshakya commented Jun 1, 2023

Ok, since this issue explicitly seem to be resolved, I will go ahead and close this issue.

I am curious why the other two projects didnt complete? It would be good if you can open an issue with error message and i can take a look, especially if it doesnt complete the second time.

I was looking at the files output by featurecount and also RPKM values reported in the results page. I have opened an issue (#28) to keep track of this issue.

@mshakya mshakya closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants