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) provide GFF file for pre computed gene calls? #45

Open
jolespin opened this issue Jan 7, 2024 · 5 comments
Open

(Question) provide GFF file for pre computed gene calls? #45

jolespin opened this issue Jan 7, 2024 · 5 comments

Comments

@jolespin
Copy link

jolespin commented Jan 7, 2024

Let's say you already ran prodigal and/or have gene calls in GFF format, can you skip the prodigal run and provide the GFF file?

antiSMASH provides a similar option since it requires gene calls and positions but allows for precomputed GFF file to be used.

@jolespin
Copy link
Author

Just checking it in to see how difficult this would be to implement in the current code base?

@Russel88
Copy link
Owner

Russel88 commented Jan 13, 2024

Hi. This is available in the dev branch. I will soonish try to get it in the released branch, but until then you can clone this repo and install the dev branch

@jolespin
Copy link
Author

jolespin commented Jan 13, 2024

Thank you! I will try it out.

Just in case it's useful for anyone:

git clone --branch dev https://github.com/Russel88/CRISPRCasTyper.git
pip install CRISPRCasTyper/

@jolespin
Copy link
Author

jolespin commented Jan 17, 2024

I'm testing this out and will log any useful developmental information here:

Here's my usage:

cctyper --db ${CCTYPER_DB} --prodigal single --threads 4 --prot ${PROTEINS} --gff ${GFF} $FASTA $OUT_DIR 
  1. I got an error in the plot module but this resolved it:
try:
    import drawSvg as draw
except ModuleNotFoundError:
    import drawsvg as draw

Also need to change this:

            try:
                self.im.saveSvg(self.out+'plot.svg')
            except AttributeError:
                self.im.save_svg(self.out+'plot.svg')

and this:

                    try:
                        self.im.savePng(self.out+'plot.png')
                    except AttributeError:
                        self.im.save_png(self.out+'plot.png')

This is because of the update in drawsvg:
https://github.com/cduck/drawsvg?tab=readme-ov-file#upgrading-from-version-1x

  1. It looks like the following blast intermediate files aren't removed:
    Flank.*

  2. The plots are not generated.

total 5.4M
-rw-r--r-- 1 jespinoz users  795 Jan 30 23:37 arguments.tab
-rw-r--r-- 1 jespinoz users 5.5K Jan 30 23:41 blast.tab
-rw-r--r-- 1 jespinoz users  916 Jan 30 23:41 cas_operons_orphan.tab
-rw-r--r-- 1 jespinoz users  12K Jan 30 23:38 cas_operons_putative.tab
-rw-r--r-- 1 jespinoz users 2.2K Jan 30 23:38 cas_operons.tab
-rw-r--r-- 1 jespinoz users  387 Jan 30 23:41 CRISPR_Cas.tab
-rw-r--r-- 1 jespinoz users  962 Jan 30 23:41 crisprs_all.tab
-rw-r--r-- 1 jespinoz users  38K Jan 30 23:41 crisprs.gff
-rw-r--r-- 1 jespinoz users  708 Jan 30 23:41 crisprs_near_cas.tab
-rw-r--r-- 1 jespinoz users  299 Jan 30 23:41 crisprs_orphan.tab
-rw-r--r-- 1 jespinoz users  297 Jan 30 23:41 crisprs_putative.tab
-rw-r--r-- 1 jespinoz users 1.4M Jan 30 23:38 Flank.fna
-rw-r--r-- 1 jespinoz users  20K Jan 30 23:38 Flank.ndb
-rw-r--r-- 1 jespinoz users 5.3K Jan 30 23:38 Flank.nhr
-rw-r--r-- 1 jespinoz users  904 Jan 30 23:38 Flank.nin 
-rw-r--r-- 1 jespinoz users  464 Jan 30 23:38 Flank.njs
-rw-r--r-- 1 jespinoz users  788 Jan 30 23:38 Flank.not
-rw-r--r-- 1 jespinoz users 344K Jan 30 23:38 Flank.nsq
-rw-r--r-- 1 jespinoz users  16K Jan 30 23:38 Flank.ntf
-rw-r--r-- 1 jespinoz users  264 Jan 30 23:38 Flank.nto
-rw-r--r-- 1 jespinoz users 383K Jan 30 23:37 genes.tab
drwxr-xr-x 2 jespinoz users  38K Jan 30 23:38 hmmer
-rw-r--r-- 1 jespinoz users    0 Jan 30 23:37 hmmer.log
-rw-r--r-- 1 jespinoz users 109K Jan 30 23:38 hmmer.tab
-rw-r--r-- 1 jespinoz users  11K Jan 30 23:38 minced.out
-rw-r--r-- 1 jespinoz users 3.0M Jan 30 23:37 proteins.faa
drwxr-xr-x 2 jespinoz users 6.0K Jan 30 23:38 spacers

@jolespin
Copy link
Author

It looks like the following blast intermediate files aren't removed:
Flank.*

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