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

cleaveland4: new package #4823

Closed
wants to merge 4 commits into from
Closed

Conversation

akthoma
Copy link
Member

@akthoma akthoma commented Jul 19, 2017

adding new pacakges cleaveland, viennarna, and perl-math-cdf


variant('sse', default=True, description='Enable SSE in order to substantially speed up execution')
variant('perl', default=True, description='Build ViennaRNA without Perl interface')
variant('python', default=True, description='Build ViennaRNA without Python interface')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing if +python means without Python and -python means with python. Can you invert the logic?


def url_for_version(self, version):
url = "https://www.tbi.univie.ac.at/RNA/download/sourcecode/{0}_x/ViennaRNA-{1}.tar.gz"
return url.format(version.up_to(2), version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to convert the first case to underscored.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having trouble figuring out how to do this, and I could be doing it completely wrong...

    def url_for_version(self, version):
        url = 'https://www.tbi.univie.ac.at/RNA/download/sourcecode/{0}/ViennaRNA-2.3.5.tar.gz'
        url = url.format(version.underscored)
        url = 'https://www.tbi.univie.ac.at/RNA/download/sourcecode/{0}_x/ViennaRNA-{1}.tar.gz'
        return url.format(version.up_to(2), version)

This returns https://www.tbi.univie.ac.at/RNA/download/sourcecode/2.3_x/ViennaRNA-2.3.5.tar.gz.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I can think of a hacky way to do it (use version.up_to(2) and convert dots to underscores) but I think there's a better way. Let me see if I can get up_to() to return a Version() object instead of a string so you can use version.up_to(2).underscored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, see #4834. Once that is merged, you should be able to use the function in the PR example.

depends_on('perl-math-cdf', type=('build', 'run'))
depends_on('bowtie')
depends_on('viennarna')
depends_on('r', type=('build', 'run'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package only installs Perl files but uses R at run-time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R is listed as a dependency that needs to be available as a PATH executable. In this case would it be better with the default type=('build', 'link')?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if it needs to be in your PATH then you have it correct already. Is it a Perl script that calls R? Or are there other things you should be installing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like if you provide the option -o when executing the CleaveLand.pl script, R is called from the script

@akthoma akthoma closed this Jul 25, 2017
@akthoma akthoma deleted the feature/cleaveland branch July 25, 2017 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants