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

Question: plotting batch info when running vai run_conga.py script #32

Open
s2hui opened this issue Nov 26, 2021 · 1 comment
Open

Question: plotting batch info when running vai run_conga.py script #32

s2hui opened this issue Nov 26, 2021 · 1 comment

Comments

@s2hui
Copy link

s2hui commented Nov 26, 2021

Hello,

Thanks for this useful tool, I am using it quite alot and wanted to run the following feature where I can plot batch information to the logo plots. Specifically, I am running conga via the python script run_conga.py. I read in the documentation within the script that there is a flag called --batch_keys with the following notes:

# if your input AnnData file has integer-valued columns defining
#  batch/tissue/donor/etc you can pass the column names with this option
#  and it will add 'batch' information to the logo plots
parser.add_argument('--batch_keys', type=str, nargs='*')

I also read that the batch info should reside within adata.obsm[<batch_key>], but what is the best way to add this info to the AnnData object?

Thanks for your help!
@s2hui

@phbradley
Copy link
Owner

Hi there,
Sorry for my slow reply (traveling). Take a look at the new answer in the CoNGA README FAQ (at the end), and see if that answers your query. Happy to help if anything's not clear or you run into trouble.
Take care,
PHil

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