Giter Club home page Giter Club logo

glycompare's People

Contributors

bkellman avatar earmingol avatar yavin4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bobaoai zyj1729

glycompare's Issues

More efficient version with implicit look up

https://github.com/bkellman/GlyCompare/blob/5682dad4df50b660c01fc141f16a9bd713116d15/src/customize_motif_vec.py#L130

I'd like to suggest an alternative to this function which sets the keys of a dictionary to the glycoct strings. This avoids the costly subtree function and I think speeds things up a lot. What do you think bokan?

def merge_motif_dict_pipe2(glycan_motif_dic):
	# param glyca_motif_dic, glycan motif dictionary output from extract_motif.get_motif_pip
	dic_out = {}
	# iterate over glycans
	for gk in glycan_motif_dic:
		# iterate over glycans of size i
		for m_size in glycan_motif_dic[gk]:
			for m_ij in glycan_motif_dic[gk][m_size]:
				m = str(m_ij)
				if m in dic_out.keys():
					dic_out[m].append(gk)
				else:
					dic_out[m] = [gk]
	return dic_out

No documentation for certain parameters, no epitope parameter

def select_motifs_pip(keywords_dict, linkage_specific, only_substructures_start_from_root, core='',

only_substructures_start_from_root --> boolean value whether to start from core
core='' --> string representation of the root
drop_parellel=False --> used in selectmotif.NodeState.nodes_dropping_pipe() , think is used to check if you can drop parallel node edges???
drop_diff_abund=True --> used in selectmotif.NodeState.nodes_dropping_pipe(), think is used in to see if you need to generate edges????
select_col=[] --> columns passed into the substructure_abd_table for getting substructure weight
remove_core=True --> remove core from the nodes???

Missing file for the Quick Example run

'glytoucan_database.json' is not in the data package. I believe that causes

Unexpected error: <class 'AssertionError'>
Traceback (most recent call last):
  File "/Users/Leria 1/Library/Mobile Documents/com~apple~CloudDocs/Documents/GlyCoCan_PhD/VU-code/test_glycompare_python_version.py", line 36, in <module>
    structure_loader=structure_loader)
  File "/usr/local/lib/python3.7/site-packages/glycompare-1.0.3-py3.7.egg/glycompare/pipeline_functions.py", line 243, in load_glycans_pip
AssertionError: missing glycan G79412GP

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.