Skip to content

Changes to wrapper to integrate with Bibiserv#62

Open
foobarx wants to merge 52 commits into
aweimann:masterfrom
foobarx:master
Open

Changes to wrapper to integrate with Bibiserv#62
foobarx wants to merge 52 commits into
aweimann:masterfrom
foobarx:master

Conversation

@foobarx

@foobarx foobarx commented Aug 1, 2017

Copy link
Copy Markdown

No description provided.

@foobarx foobarx closed this Aug 1, 2017
@foobarx foobarx reopened this Aug 1, 2017

@aweimann aweimann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why would you replace sort_values with sort_index?

@foobarx

foobarx commented Aug 2, 2017 via email

Copy link
Copy Markdown
Author

@aweimann aweimann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Oh I see. The solution is to use bioconda / conda for installing the dependencies. Actually, I'm currently working on making a conda recipe for Traitar itself. Could you use that as well? https://conda.io/docs/install/quick.html

sample_table = pd.DataFrame(sample_file_names)
categories = pd.Series(sample_cat.loc[sample_file_names, ]['category'].tolist())
sample_table['category'] = categories
sample_table.columns = ["sample_file_name", "category"]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

thanks for the changes; I think I haven't really properly tested this one!

Comment thread traitar/hmmer2filtered_best.py Outdated
with open(out_f, 'w') as out_fo:
ps.DataFrame(filtered_df.columns).T.to_csv(out_f, sep = "\t", index = False, header = False, mode = 'a')
filtered_df.sort_values(by = ["target name", "query name"], inplace = True)
filtered_df.sort_index(by = ["target name", "query name"], inplace = True)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why would you do this?

@foobarx

foobarx commented Aug 2, 2017 via email

Copy link
Copy Markdown
Author

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

Successfully merging this pull request may close these issues.

2 participants