Git Product home page Git Product logo

magphi's People

Contributors

arfon avatar biologicalscientist avatar milnus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

magphi's Issues

Error while installing

I am trying to install by using this code pip install Magphi and I got this error
Collecting Magphi
Downloading Magphi-2.0.0-py3-none-any.whl (29 kB)
Requirement already satisfied: biopython==1.79 in ./miniconda3/lib/python3.9/site-packages (from Magphi) (1.79)
Collecting pybedtools
Downloading pybedtools-0.9.0.tar.gz (12.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.5/12.5 MB 38.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/_t/bn8_sf0977n5x0zjh0xsf2xr0000gn/T/pip-install-i652sgvi/pybedtools_ffacbbbf6e474788849b95a2c5852cd2/setup.py", line 286, in
setup(
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/init.py", line 86, in setup
_install_setup_requires(attrs)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/init.py", line 75, in _install_setup_requires
dist = MinimalDistribution(attrs)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/init.py", line 57, in init
super().init(filtered)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/dist.py", line 474, in init
for ep in metadata.entry_points(group='distutils.setup_keywords'):
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 999, in entry_points
return SelectableGroups.load(eps).select(**params)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 449, in load
ordered = sorted(eps, key=by_group)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 996, in
eps = itertools.chain.from_iterable(
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/_itertools.py", line 16, in unique_everseen
k = key(element)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 931, in _normalized_name
return self._name_from_stem(stem) or super()._normalized_name
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 600, in normalized_name
return Prepared.normalize(self.name)
File "/Users/mo/miniconda3/lib/python3.9/site-packages/setuptools/vendor/importlib_metadata/init.py", line 855, in normalize
return re.sub(r"[-
.]+", "-", name).lower().replace('-', '
')
File "/Users/mo/miniconda3/lib/python3.9/re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I tried also conda and it failed

[JOSS Review] Tests are currently failing

Review

I am not sure if the tests have actually failed or the tag in the GitHub readme has just failed to update. In either case, it would be good to re-run the tests so that the tag updates to green.

Add indication for complete genomes

Add in a flag or two that will indicate if a single/all input genomes are complete and circular, or a flag that can take a text file with each genome in it and a matching indication if it should be treated as circular.

primer sequence names must be unique at RHS or else fails partway.

script appears to fail when two primer sets are named similarly enough to fail one of the functional checks (for example D_1/2 and mutsD1/2) this appears to be fixed when having a longer primer sequence name to prevent non uniqueness in names (ie. adding site to the beginning of everything fixed it.

python3 primer_site_extraction_software-main/main.py -g /Users/ahhayes/Desktop/lab-book/100_YR_M1/genomes/091219-final-fasta/*.fa -p Javan_phage_int_sites_M1_no_g.fa -o MGAS5005_Javan_all -c 4
all files were found to be fasta files
Trying to construct output folder...
Output folder exists
42 primers found in primer file.
This leads to 21 pairs of primers.
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/Users/ahhayes/miniconda3/envs/extractor/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/Users/ahhayes/Desktop/lab-book/Magnus/extractor/primer_site_extraction_software-main/search_insertion_sites.py", line 620, in screen_genome_for_primers
    genome_file, file_type, tmp_folder)
  File "/Users/ahhayes/Desktop/lab-book/Magnus/extractor/primer_site_extraction_software-main/search_insertion_sites.py", line 395, in check_primers_placement
    raise NotImplementedError(f'Some unaccounted for constalation of primers hits '
NotImplementedError: Some unaccounted for constalation of primers hits was found to hit a single contig.
The primer pair in question is D in genome MGAS5005_Javan_all/phupa_tmp_folder/13670_4_14.fa.
Please report this along with the following: [['contig00002', '24993', '26391', 'D_2'], ['contig00002', '26523', '27435', 'D_1'], ['contig00002', '270018', '272574', 'mutsD_2'], ['contig00002', '272702', '274685', 'mutsD_1']]
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "primer_site_extraction_software-main/main.py", line 122, in <module>
    main()
  File "primer_site_extraction_software-main/main.py", line 75, in main
    primer_hits, annots_per_interval, genome_name, primer_evidence, break_primers, inter_primer_dist = f.result()
  File "/Users/ahhayes/miniconda3/envs/extractor/lib/python3.6/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/Users/ahhayes/miniconda3/envs/extractor/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
NotImplementedError: Some unaccounted for constalation of primers hits was found to hit a single contig.
The primer pair in question is D in genome MGAS5005_Javan_all/phupa_tmp_folder/13670_4_14.fa.
Please report this along with the following: [['contig00002', '24993', '26391', 'D_2'], ['contig00002', '26523', '27435', 'D_1'], ['contig00002', '270018', '272574', 'mutsD_2'], ['contig00002', '272702', '274685', 'mutsD_1']]

[JOSS Review] Toy example

[Review = https://github.com/openjournals/joss-reviews/issues/4369]

  • The command for the toy example needs updating. It currently refers to fasta files but there are only GFF files in the Toy_example/Input_data folder.
  • I am not sure whether it was intentional to keep the Toy_output folder in the GitHub repository. I think it might be better to simply list the files and folders that should be creates in the documentation
  • I think the description of the output of the toy example in the Wiki could be improved. A few sub-headings might also help to make it easier to follow.
  • I think this is quite a nice example and if it is formatted a bit more cleanly it would make a nice addition to the main Readme.md file. However, I'll leave this entirely up to you as I think it is okay in its current location also.

[JOSS Review] Spelling and grammar

Review

The paper is well written, however, there are quite a few typos in the Readme and Wiki. There are GitHub actions to check spelling, but I think it might be easiest to simply copy the .md files into a word editor such as Google docs to help clean up the remaining typos.

A few I've spotted include:

  • Readme and wiki: 'Examlpe', 'seqeunces', 'imporive' ...
  • Wiki - installation: 'seqeunce', 'Qucik', 'writen', 'Comming', 'recipie', ...

Check for possible primer annotations

Implement a check that looks for possible annotations related to the coordinates of the primers.
These annotations needs to be taken into account when assigning evidence levels, as a region can contain no annotations in itself, but if the primers are included and contain annotations, the evidence level is increased falsely.

[JoSS] Ayaan's Review Thread

Hey guys, I'll be reviewing this repository and the paper on behalf of JoSS! This is my main review thread, in which I'll discuss things with you guys. If there is a specific issue we need to address, I'll open a separate issue and link it here. Once my review is done, and everything is resolved, I'll close this issue.

[JOSS Review] Community guidelines required

Review

JOSS requires that there is a community guidelines section in the documentation.

Community guidelines: Are there clear guidelines for third parties wishing to 1) Contribute to the software 2) Report issues or problems with the software 3) Seek support

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.