Closed JonMarten closed 4 years ago
Hi,
The interaction term needs to be provided as a file mapping sample ID to value (with an optional header) when using the CLI, otherwise as a pandas series.
Apologies for the lack of documentation for these functions. I've added descriptions to the README, in the section for running as a module, and will update the rest soon.
Hi there,
Back again with more questions. I'm trying to run an analysis with an interaction term but I'm not entirely clear on how this is meant to be run.
First I tried following the
--interaction
flag the column name of the variable to be used as an interaction term from my covariate file. This obviously failed.I then tried passing the name of a new text file that contained columns for sample ID and the interaction term. When run in the command line, this failed with an AsserionError:
As far as I can tell, this is checking that the indices for the covariate and interaction dataframes match, and this comes up with an error. The confusing thing is that when I read both of these files into python interactively and perform the same
assert
test, it passes, so the ids are definitely consistent between the files.I finally tried running the whole command interactively in python with the following code:
Which gave another different error:
Do you have any idea what I might be doing wrong here?