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

Changes to wrapper to integrate with Bibiserv #62

Open
wants to merge 52 commits into
base: master
Choose a base branch
from

Conversation

foobarx
Copy link

@foobarx foobarx commented Aug 1, 2017

No description provided.

@foobarx foobarx closed this Aug 1, 2017
@foobarx foobarx reopened this Aug 1, 2017
Copy link
Owner

@aweimann aweimann left a comment

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
Copy link
Author

foobarx commented Aug 2, 2017 via email

Copy link
Owner

@aweimann aweimann left a comment

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, sample_cat.loc[sample_file_names,]])
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
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!

@@ -49,7 +49,7 @@ def aggregate_domain_hits(filtered_df, out_f):
#sort by gene identifier and Pfam
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
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
Copy link
Author

foobarx commented Aug 2, 2017 via email

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