question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorry for the dumb question, I am trying to use clinker but I cannot analyze files within a folder.

I have cloned clinker from git and installed it via pip, as indicated in the readme, so now I have a clinker folder that includes the examples. I have created a dedicated environment and I am working in Jupyter notebook. This is the code that I am using:

import sys sys.path.append('C:\\Users\Emanuele Boni\clinker') import clinker import os proj_dir = 'C:\\Users\Emanuele Boni\clinker\examples' os.listdir(proj_dir)

This returns the content of the folder as ['A. alliaceus CBS 536.65.gbk', 'A. burnettii MST-FP2249.gbk', 'A. mulundensis DSM 5745.gbk', 'A. versicolor CBS 583.65.gbk', 'note.md', 'P. vexata CBS 129021.gbk']

However, if I try to run clinker proj_dir/* -p I get the error message SyntaxError: invalid syntax pointing at proj_dir

I have tried several things: creating a subfolder in the folder where I am running the notebook, writing the folder name as string and as variable (with and without quotes), running the lines of code directly from the command line instead of inside the notebook. None of these worked. I think I am not considering something very trivial, but I cannot figure out what it is.

Thank you for your help and for developing this tool! Emanuele

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EmaBonicommented, Jun 28, 2022

Thanks a lot! We found 18-19% identity threshold was ideal for us. You have been extremely helpful, thanks again for your time and for this very useful tool! Kind regards, Emanuele

0reactions
gamcilcommented, Jun 28, 2022

Just had some time to have a look at this. It seems the files are read in correctly (it is picking up the AA translations just fine), but the alignments are falling below the default identity threshold (30%) and so are getting filtered out. You can lower this threshold using the -i/--identity argument, e.g. clinker EBoni/*.gb -i 0.2 -p. That command gives me this: Screen Shot 2022-06-28 at 11 29 55 AM

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Cement Clinker? Composition, Types & Uses
Clinker is primarily used to produce cement. Since it can be stored in dry condition for several months without noticeable deterioration, it is...
Read more >
Cement clinker - Wikipedia
Cement clinker is a solid material produced in the manufacture of Portland cement as an intermediary product. Clinker occurs as lumps or nodules, ......
Read more >
What is Clinker? (Meaning, History, Manufacturing ...
Clinker is mostly used to produce cement. Since it can be kept in dry circumstances for several months without noticeable decadence, it has...
Read more >
Difference Between Clinker and Cement
Clinker is the material that we use as the binder of cement, and it is a nodular material. Usually, the lumps or nodules...
Read more >
Clinker - Cembureau
Since the majority of the emissions related to cement production are process emissions, the pure CO2 could be captured and stored or put...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found