-
Notifications
You must be signed in to change notification settings - Fork 9
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
Importing stitchr for use in other scripts - obtain stitched aa sequence without C region information #35
Comments
Hello hello, Glad to see that the import option is getting some attention! It is however a relatively advanced use of the tool, so unfortunately you have to do a little more legwork to recapitulate the fuller functionality of the current scripts. To answer your questions: 1- The way that the tool works is that the core However it's pretty simple to get the same information out of the results provided - you just need to translate the stitched nt sequence, which is the second item in the output, e.g.:
2-
When using the bare function you're going to have to make that determination yourself for each of your rearrangement. Alternatively if you don't care about the constant you can just specify the same C for all of them and trim it off later, or use the extra gene file to apply some arbitrary sequence in place of the C. Hope that helps! |
Thanks for the info! |
No probs, my pleasure - glad to see people using the tool! |
Sorry to re-float this, I am trying to run Stitchr inside I'm not very proficient with Python, so I think the below code needs converting the variables with this is my best attempt:
but I get:
Do you have any insight on how to solve this? Thanks! |
I'm afraid that I don't use R much (or Is the underlying data there/OK? What's the content of |
I am actually trying to run
stitchr
inside a Shiny R app, for which I usereticulate
to run it inside a conda environment.For that, I do the following:
reticulate::use_condaenv('myenv')
reticulate::py_install("stitchr", pip = TRUE)
Then I create a
run_stitchr.py
script as detailed in https://jamieheather.github.io/stitchr/importing.htmlrun_stitchr.py
looks exactly like the one in the link above:and I run it as follows:
run_results <- reticulate::py_run_file(run_script)
This works perfectly, and
run_results$stitched
contains the following output:Now here I have 2 questions:
1- using this approach, is there a possibility to obtain the aminoacid stitched sequence instead (similarly to command-line
stitchr
, that returns both DNA and aa sequences)?2- I don't have C region information, but if I just write
'c': ''
in thetcr_bits
section of therun_stitchr.py
above, I get the following:Error: a CONSTANT sequence region has not been found for gene in the IMGT data for this chain/species. Please check your TCR and species data.
No C region information does not seem to be a problem for command-line
stitchr
... what is the correct way to runstitchr
with no C region information using the approach above withrun_stitchr.py
?Many thanks!
Daniel
The text was updated successfully, but these errors were encountered: