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

Issue with generateTypicalParamTable() and pd.concat function #1

Open
drewjbeh opened this issue Nov 28, 2017 · 5 comments
Open

Issue with generateTypicalParamTable() and pd.concat function #1

drewjbeh opened this issue Nov 28, 2017 · 5 comments

Comments

@drewjbeh
Copy link

Hi there,

While trying to run the pipeline outlined in Library_design_walkthrough.ipynb, I ran into an error at line [9] paramTable_trainingGuides = generateTypicalParamTable(libraryTable_training,sgInfoTable_training, tssTable, p1p2Table, genomeDict, bwhandleDict)

The error I got was
AssertionError: Cannot concat indices that do not have the same number of levels coming from the pd.concat function.

I went manually, line by line through the code for generateTypicalParamTable() and eventually found the problem was with doubleBaseTable. It seems that this table is created with a MultiIndex for columns, and so when you try concat it to other tables which all have single level indices for columns you get this error. Is there something I am doing wrong?

@drewjbeh drewjbeh changed the title Issue with generateTypicalParamTable() pd.concat function Issue with generateTypicalParamTable() and pd.concat function Nov 28, 2017
@drewjbeh
Copy link
Author

Hi there,

Still really need a solution for this. Get the feeling this repo isn't being maintained anymore?

@Gowthamvarma30
Copy link

Faced similar issue, your information is helpful.
Did you make any further progress on this one?

Is there any alternative git for this process?

@inesHellmann
Copy link

inesHellmann commented Mar 21, 2022

Hi there,
just ran into exactly the same issue. Pandas is happier if one if sort=True is added to the pd.concat in generateTypicalParamTable. However, concat that I have does not collapse the multiple columns of an object, as seems to be assumed in the version used here -- which means that there are too few column names -- ( there are 3 accessibility columns, not only 1). Anybody knows when that behavior changed?
It would be really helpful to get the package versions, of the working script.

@MaxActionWang
Copy link

Hi there,

I have similar problems with this line of codes about parameter calculation.

paramTable_trainingGuides = generateTypicalParamTable(libraryTable_training,sgInfoTable_training, tssTable, p1p2Table, genomeDict, bwhandleDict)

the errors were like

....
<string>:619: RuntimeWarning: Mean of empty slice
<string>:595: RuntimeWarning: All-NaN slice encountered
<string>:619: RuntimeWarning: invalid value encountered in float_scalars
......
ValueError: Wrong number of items passed 0, placement implies 18380

It seems that the problem is about pandas module and my pandas version is 0.19.2.

So can anyone tell me your package versions so that I could use the correct one. Thanks.

@jsacco1
Copy link

jsacco1 commented Nov 11, 2022

Hi there,

I have similar problems with this line of codes about parameter calculation.

paramTable_trainingGuides = generateTypicalParamTable(libraryTable_training,sgInfoTable_training, tssTable, p1p2Table, genomeDict, bwhandleDict)

the errors were like

....
<string>:619: RuntimeWarning: Mean of empty slice
<string>:595: RuntimeWarning: All-NaN slice encountered
<string>:619: RuntimeWarning: invalid value encountered in float_scalars
......
ValueError: Wrong number of items passed 0, placement implies 18380

It seems that the problem is about pandas module and my pandas version is 0.19.2.

So can anyone tell me your package versions so that I could use the correct one. Thanks.

Make sure you have ViennaRNA 2.2.5 installed.

When this line runs

subprocess.call('RNAfold --noPS < %s > %s' % (tempfile_fa.name, tempfile_rnafold.name), shell=True) the tempfile_rnafold.name is likely empty as you do not have ViennaRNA installed and in your path

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

5 participants