Giter Site home page Giter Site logo

Comments (14)

ababaian avatar ababaian commented on August 22, 2024

@Ebedthan I used the instructions listed on our front page to install into gedit; everything copied over but now it's only coloring the headers and there is no nucleotide coloring at all.

cd ~/bioSyntax/syntax/gedit/

chmod 0644 *.lang

sudo cp *.lang /usr/share/gtksourceview-3.0/language-specs/

sudo cp bioKate.xml /usr/share/gtksourceview-3.0/styles/bioKate.xml

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

Yes, the instructions seems a little bit more different. First of all you need to change your color scheme in gedit from classic to bioKate. So you have to add bioKate as a color scheme by selecting bioKate.xml selecting edit>preferences> font and color and click the button plus and select bioKate.xml.
So this process will add bioKate as a new color scheme and to have things working as we want we need to select bioKAte as our color scheme after adding it.

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

To avoid issues like that what do you think if we custom our page like the cd-hit page. Doing things like that have the advantage to have all instructions clearly explained in the wiki.
What do you think @ababaian ?

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

I agree; but can we migrate everything over to the wiki/it's own front page when we're closer to being done? Just consider the README.md as a draft of that page for now.

You nailed it though; I'll add an instruction to change the 'theme' to bioKate in Gedit.

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

Ok you're right.

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

Note on Fasta

Great start, you've got the process down which means we're good to get developing : )

  • The main and default fasta syntax should be made context-aware.

This is a little bit tricky but if you can work it out it will help all the rest of the syntaxes to be developed quickly. Take a look at Alyssa's fasta syntax in sublime. It is able to detect if a line of sequence is an amino acid and it colors them in Clustal colors or if it's Nucleotides only (ACTGUNX-.) and then it colors them as nucleotides. This concept of context aware highlighting is key to making the other formats work correctly but none of us have tried to solve this for gedit yet.

context-aware-fasta

  • All fasta derivate formats should be named Fasta-<SubName> such as Fasta-Clustal so they come up at the same place in a context menu as opposed to just Zappo / Clustal / ...
  • Fasta derivative syntaxes are not coloring in headers

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

Ok got it I will work on your remarks

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

I think the syntax/gedit/ folder can be tested now by @ababaian to see if all is correct.

from biosyntax-archive.

Ebedthan avatar Ebedthan commented on August 22, 2024

the sam.lang is not ready yet.

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

Getting closer, good.
fasta_eval2

fasta.lang
Easy

  • Headers are not bold
  • N character not highlighted in amino acid sequences
  • Nucleotide colors are quite off; can you manually set them to the colors defined in our scope issue
    Challenging
  • For indels, you need to consider both . and - as characters which can be used for empty bases
  • In the amino acid sequences, all non-first characters which are ATCG are using nucleotide colors and not amino acid colors. The best example is Line 28 in the image above. If you add a D then the entire line should be treated as if it's an amino acid sequence because it's behaving like an AA sequence and not a nt sequence.
  • Conversely; Look at the T on Line 3, the first one is matched as an AA, green (correct) and all subsequent ones are NT, red (incorrect).

Also the fast-cyesteine should be deleted unless there's a reason for it to exist?

Finally I'm about to push a new syntax folder in dev/syntax which should be used for all development purposes. We should keep the top-level syntax folder for things which are working.

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

Hey @lazypanda10117 + @Ebedthan ,

I just wanted to check in with both of you since it's a bit harder to communicate remotely.
You two are tasked with working on the gedit port. Ideally we all will have the core syntaxes done for the next meeting (~Nov 17th). I know it's been difficult to learn regex / syntax highlighting on your own but both of your code is looking better with each iteration.

One thing which we're slowly learning is that some of the more advanced syntaxes (PDB, SAM, VCF) will require internal logic (if --> then) to work correctly. So far really none of us have figured this out for the gedit syntax. @echu113 is our experienced programmer and is going to spend a few days looking into the sam format for gedit to see if he can find a logical way to solve this. My recommendation for all of you is to read some gedit .lang code for complex syntaxes and get a better feeling for how to use that language and share what you find with each other. If you guys really get to an impasse let me know and the others can look into helping out too.

from biosyntax-archive.

cpan-chu avatar cpan-chu commented on August 22, 2024

#22

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

Hey @Ebedthan + @lazypanda10117,

I think I might have cracked the gedit/gtksourceview syntax for getting 'robust column selection'

Check out Fasta Index Language File for an example of the logic. It's the same thing as in sublime / less where nested contexts can be used to select by column. This should make SAM/VCF/BED/GTF files much much easier to deal with.

faidx-gedit

from biosyntax-archive.

ababaian avatar ababaian commented on August 22, 2024

Helpful link for future reference: https://developer.gnome.org/gtksourceview/stable/lang-reference.html

from biosyntax-archive.

Related Issues (20)

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.