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

Error in read_biom(biom_file = BIOMfilename) #59

Open
najouamghazli opened this issue Jun 7, 2022 · 2 comments
Open

Error in read_biom(biom_file = BIOMfilename) #59

najouamghazli opened this issue Jun 7, 2022 · 2 comments

Comments

@najouamghazli
Copy link

Hi Maria,

I am encountring a problem while trying to run the r_import_data.py. Bellow are the details:
(base) najoua@LAPTOP-NK0EB027:/mnt/e/Travail_Najoua_2021_2022/Odile$ /home/najoua/FROGS-3.1.0/app/r_import_data.py --biomfile 07-affiliation_Silva.biom --samplefile CompasMetadata.txt --treefile 13-tree-pynast.nwk --rdata 14-phylo_import.Rdata --html 14-phylo_import.html --log-file 14-phylo_import.log

This gives this error

Traceback (most recent call last):
File "/home/najoua/FROGS-3.1.0/app/r_import_data.py", line 161, in
Rscript(biomfile, samplefile, treefile, html, str(args.normalization).upper(), data, ranks, rmd_stderr).submit(args.log_file)
File "/home/najoua/FROGS-3.1.0/lib/frogsUtils.py", line 141, in submit
subprocess.check_output( self.get_cmd(), shell=True )
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'Rscript -e "rmarkdown::render('/home/najoua/FROGS-3.1.0/app/r_import_data.Rmd',output_file='/mnt/e/Travail_Najoua_2021_2022/Odile/14-phylo_import.html', params=list(biomfile='/mnt/e/Travail_Najoua_2021_2022/Odile/1654630328.4_83_07-affiliation_Silva.stdBiom', samplefile='/mnt/e/Travail_Najoua_2021_2022/Odile/CompasMetadata.txt', treefile='/mnt/e/Travail_Najoua_2021_2022/Odile/13-tree-pynast.nwk', normalization=FALSE, outputRdata='/mnt/e/Travail_Najoua_2021_2022/Odile/14-phylo_import.Rdata', ranks='Kingdom Phylum Class Order Family Genus Species', libdir ='/home/najoua/FROGS-3.1.0/lib/external-lib'), intermediates_dir='/mnt/e/Travail_Najoua_2021_2022/Odile')" 2> /mnt/e/Travail_Najoua_2021_2022/Odile/1654630328.4_83_rmarkdown.stderr' returned non-zero exit status 1

When I run the Command
Rscript -e "rmarkdown::render('/home/najoua/FROGS-3.1.0/app/r_import_data.Rmd',output_file='/mnt/e/Travail_Najoua_2021_2022/Odile/14-phylo_import.html', params=list(biomfile='/mnt/e/Travail_Najoua_2021_2022/Odile/1654630328.4_83_07-affiliation_Silva.stdBiom', samplefile='/mnt/e/Travail_Najoua_2021_2022/Odile/CompasMetadata.txt', treefile='/mnt/e/Travail_Najoua_2021_2022/Odile/13-tree-pynast.nwk', normalization=FALSE, outputRdata='/mnt/e/Travail_Najoua_2021_2022/Odile/14-phylo_import.Rdata', ranks='Kingdom Phylum Class Order Family Genus Species', libdir ='/home/najoua/FROGS-3.1.0/lib/external-lib'), intermediates_dir='/mnt/e/Travail_Najoua_2021_2022/Odile')" 2> /mnt/e/Travail_Najoua_2021_2022/Odile/1654630328.4_83_rmarkdown.stderr

I get this in the 1654630328.4_83_rmarkdown.stderr file:

processing file: r_import_data.Rmd
Quitting from lines 57-101 (r_import_data.Rmd)
Error in read_biom(biom_file = BIOMfilename) :
Both attempts to read input file:
/mnt/e/Travail_Najoua_2021_2022/Odile/1654630328.4_83_07-affiliation_Silva.stdBiom
either as JSON (BIOM-v1) or HDF5 (BIOM-v2).
Check file path, file name, file itself, then try again.
Calls: ... withVisible -> eval -> eval -> import_biom -> read_biom
Execution halted

I am using FROGS-3.1.0 in Windows Subsystem Linux and also in a Server through putty, and in both cases I get the exact same error.

Could you please guide me in order to resolve this issue ?

Najoua

@mariabernard
Copy link
Collaborator

Hi Najoua,

Apparently, something going on with the initial biom file ... Could you please share your three input files so I can check contents and reproduce the error?

regards

Maria

@najouamghazli
Copy link
Author

I sent them via e-mail, thank you.

Best regards,

Najoua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants