Giter Club home page Giter Club logo

lotusfiller's People

Contributors

adafede avatar msorok avatar

Stargazers

 avatar

lotusfiller's Issues

Get last file from Zenodo

Hi @mSorok!

I thought I would manage this alone but it is probably wiser to ask you...

Now that everything is on Zenodo, the following steps:

java -Xmx16288m -jar lotusfiller-0.0.1-SNAPSHOT.jar data/platinum.tsv fragments/fragment_without_sugar.txt fragments/fragment_with_sugar.txt importLOTUSids lotus_ids_march2021.txt > latest.logs.mar12.txt

## add metadata 
java -Xmx16288m -jar lotusfiller-0.0.1-SNAPSHOT.jar addMetadata data/210223_frozen_metadata.tsv

should take directly what is on Zenodo.

I have no idea how to do it best. If you prefer to first download locally, or how java deals with loading files remotely.

Here is an easy snippet from python to get automatically the needed URLs:

from requests_html import HTMLSession

s = HTMLSession()
r = s.get("https://doi.org/10.5281/zenodo.5794106")

urls = [l for l in r.html.absolute_links if "frozen.csv.gz" in l]
if not urls:
    raise ValueError(f"can't get the link for frozen.csv.gz")
print(urls[0])

r = s.get("https://doi.org/10.5281/zenodo.6378224")

urls = [l for l in r.html.absolute_links if "organism_metadata" in l]
if not urls:
    raise ValueError(f"can't get the link for organisms")
print(urls[0])

urls = [l for l in r.html.absolute_links if "structure_metadata" in l]
if not urls:
    raise ValueError(f"can't get the link for structure")
print(urls[0])

These URLs can then be used to read the files directly or download them.

I do not know how to keep low the needed java dependencies etc. If you can guide me on how to do it best, great!

[question] sugar fragments

Are fragments/fragment_with_sugar.txt and fragments/fragment_without_sugar.txt supposed to be updated?

If so, how?

[question] AllChem/AllTaxa fields

From my understanding, those fields are needed for the search but there are users using them for different (wrong) purposes, shall we state (stronger?) it is a bad idea?

[enhancement] Organisms

The organism Wikidata ID should be outside of the "taxonomy" table, next to the reference link to WD ideally.

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.