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

limix_converter problem with phenotype_sample.csv #17

Open
alexd106 opened this issue Dec 9, 2015 · 2 comments
Open

limix_converter problem with phenotype_sample.csv #17

alexd106 opened this issue Dec 9, 2015 · 2 comments

Comments

@alexd106
Copy link

alexd106 commented Dec 9, 2015

Hi

Iam having a problem following the 'loading files into LIMIX' tutorial, specifically with using limix_converter to convert the phenotype_sample.csv into hdf5 format.

This is the command Iam using :

limix_converter --outfile=./my_pheno.hdf5 -csv=./phenotype_sample.csv

It seems to run ok, but the hdf5 file does not contain any datasets or groups.

h5dump -A my_pheno.hdf5 
HDF5 "my_pheno.hdf5" {
GROUP "/" {
}
}

I am using this on a biolinux box
Linux XXX 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

and using LIMIX version limix==0.7.12 installed using pip.

I have also tried using my own phenotype file (.csv) but have the same problem.
Can anyone shed any light?
Cheers
Alex

@alexd106
Copy link
Author

alexd106 commented Dec 9, 2015

Ok, i sorted the problem. There is a typo in the tutorial

limix_converter --outfile=./my_file.hdf5 -csv=./phenotype_sample.csv

should read

limix_converter --outfile=./my_file.hdf5 --csv=./phenotype_sample.csv

note double '-' for the csv argument. Sorry, should have spotted that.

I do however get another warning

/usr/local/lib/python2.7/dist-packages/limix/io/conversion.py:78: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support sep=None with delim_whitespace=False; you can avoid this warning by specifying engine='python'.
  C = pandas.io.parsers.read_csv(csv_file,sep=sep,header=None,index_col=False,*args,**kw_args)

but it seems to convert to hdf5 ok.
Thanks
Alex

@alexd106
Copy link
Author

alexd106 commented Dec 9, 2015

Ok, in case anyone else comes across this I bypassed the warning by including the -D option

limix_converter -O ./my_pheno.hdf5 -C ./phenotype_sample.csv -D ,

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

1 participant