Skip to content

I am having a problem when calculating the p-value using seekr_find_pval #31

@herrroaa84

Description

@herrroaa84

Hi All,

I am having a problem when calculating the p-value.

$ seekr_find_pval sig_lncrnas_canonical_transcript_cleaned.fa sig_lncrnas_canonical_transcript_cleaned.fa bkg_mean_4mers.npy bkg_std_4mers.npy 4 gencode_can_fitres.csv -ft npy -bf 1 -o test_pval -pb
ValueError: could not convert string to float: 'distribution_name'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/tarekmohamed/miniconda3/envs/seekr/bin/seekr_find_pval", line 33, in
sys.exit(load_entry_point('seekr==2.0.2', 'console_scripts', 'seekr_find_pval')())
File "/Users/tarekmohamed/miniconda3/envs/seekr/lib/python3.9/site-packages/seekr/console_scripts.py", line 872, in console_find_pval
fitres = np.loadtxt(args.fitres_file, delimiter=',')
File "/Users/tarekmohamed/miniconda3/envs/seekr/lib/python3.9/site-packages/numpy/lib/_npyio_impl.py", line 1381, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
File "/Users/tarekmohamed/miniconda3/envs/seekr/lib/python3.9/site-packages/numpy/lib/_npyio_impl.py", line 1021, in _read
arr = _load_from_filelike(
ValueError: could not convert string 'distribution_name' to float64 at row 0, column 1.

$ cat gencode_can_fitres.csv
distribution_name,D_statistics,params
lognorm,0.02236670458969922,"(np.float64(0.02620663026716849), np.float64(-6.1761915645512655), np.float64(6.174598641024815))"
gamma,0.023016711460486755,"(np.float64(501.3658967715155), np.float64(-3.626400786282508), np.float64(0.007233922842146263))"
norm,0.0249806206579285,"(np.float32(0.00052793795), np.float32(0.1619385))"
chi2,0.05239063968493046,"(np.float64(62.81230868170036), np.float64(-0.9532428797463333), np.float64(0.015111192519382463))"
cauchy,0.06263886749355999,"(np.float64(-0.0019749987722971693), np.float64(0.09064641310659288))"
exponpow,0.10212773445094676,"(np.float64(2.900542119062174), np.float64(-0.7262605229106045), np.float64(0.9179673480686319))"
rayleigh,0.29829641179105626,"(-0.7261708080773113, np.float32(0.5264576))"
uniform,0.3409449687646513,"(-0.7261621952056885, 1.6298305988311768)"
expon,0.4238617759842025,"(-0.7261621952056885, 0.7266901135444641)"
pareto,0.4245104572161462,"(np.float32(8456.321), np.float32(-6144.726), np.float32(6143.9995))"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions