Comments (4)
Are you using an old version of python? If you're having problems with the 'with' statement it might be that that's the problem (https://www.python.org/dev/peps/pep-0343/). If so then it's best to install and use version 2.7.
Date: Thu, 6 Aug 2015 02:24:56 -0700
From: [email protected]
To: [email protected]
Subject: [OrthoFinder] Syntax error (#1)
How can I solve this error?
File "orthofinder.py", line 229
with open(clustersFilename, 'rb') as clusterFile, open(newFilename, "wb") as output:
^
SyntaxError: invalid syntax
—
Reply to this email directly or view it on GitHub.
from orthofinder.
I am using python version 2.6.5. When I change lines of with I get another error:
File "orthofinder.py", line 1031
fastaFileIndices = {filename:iSpecies for iSpecies, filename in enumerate(originalFastaFilenames_justNames)}
^
SyntaxError: invalid syntax
from orthofinder.
Hi spenagon
I've just checked and the dictionary comprehension (the syntax you've posted) was introduced in versions 2.7, released 2010. I will put a note in the README file to tell users that they'll need to use version 2.7 but will download some older versions of python and see if I can make the code backwards compatible with these.
David
from orthofinder.
Closing this issue now that README now makes clear the python version requirements.
from orthofinder.
Related Issues (20)
- Orthologic Subfamily identification
- Orthogroups.txt and Orthogroups.csv files do not match HOT 1
- Broken link to tutorials in README
- From Orthogroups to a core Proteome
- Pan Plot as Roary
- An error is reported when running orthofinder for more than 15 species
- Running with GLIBC 2.17
- Orthofinder not writing gene to HOG even though it matches all others in the group
- -M msa -T raxml fails in OrthoFinder 2.5.5
- ERROR: .fas appears to contain nucleotide sequences instead of amino acid sequences. Use '-d' option
- diamond dropped --ignore-warnings flag, leads to error HOT 5
- To run STAG/STRIDE without requiring all species present in tree/ output with only species present in all trees HOT 1
- paralogs in same species
- different sets of genes as input
- Installing on Mac M1 - README update
- Issue with user supplied species tree
- conda install failes HOT 1
- [Bug:] Option `-p tmp_pickle_dir` not working
- [Feature request] reduce number generated files per directory (e.g. for blast results, pickle files)
- ERROR when starting from BLAST, Orthogroups or Tree
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orthofinder.