LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2017, 06:08 AM   #1
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Wink FASTA files syntax highlight (nucleotides and amino acids)


Hi to all,

I rarely advertise my humble blog directly, but I believe this is worth it. I also need your help for "quality control".

I work with nucleotide and amino acid sequences and FASTA is among the most commonly used text file formats for biological sequences. I wanted my text editor (medit) to be able to display colour code for the nucleotides and/or amino acid residues. Long story short, I ended up making my own fasta.lang file and an accompanying modified Tango style, which I called BioTango.

here's the link to my blog post:

https://slackalaxy.com/2017/06/25/fa...tax-highlight/

I don't have experience with lang or xml files, so may I kindly ask you to check if I did thinbgs correctly? Any suggestions are welcome. This is a preview of what I am talking about:
Attached Thumbnails
Click image for larger version

Name:	nuc.png
Views:	59
Size:	43.6 KB
ID:	25325   Click image for larger version

Name:	pep1.png
Views:	48
Size:	58.4 KB
ID:	25326  
 
Old 06-29-2017, 10:27 PM   #2
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by solarfields View Post
I work with nucleotide and amino acid sequences
I hate to break this to you, but you're probably the only one with an interest in Slackware and research into nucleotide and amino acid sequences. I applaud you for using a sensible OS for your work, but I think you're better off finding a forum where your colleagues are more likely to give an informed opinion of what you are asking. There's got to be another person using Linux and works in your field. Just a thought.

Happy Slacking!
 
1 members found this post helpful.
Old 06-30-2017, 05:16 AM   #3
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Original Poster
Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Quote:
I hate to break this to you, but you're probably the only one with an interest in Slackware and research into nucleotide and amino acid sequences.
Ah, I already figured this out myself...

I have seen people here discussing some of the sequence analysis/assembly tools that I maintain at SBo, though. Slackware's forum at LQ is probably the only forum that I participate in. I will search however if someone needed this syntax highlight and let them know it exists.

Quote:
I applaud you for using a sensible OS for your work, but I think you're better off finding a forum where your colleagues are more likely to give an informed opinion of what you are asking.
you are right, I will therefore mark the thread as SOLVED.

Quote:
There's got to be another person using Linux and works in your field. Just a thought.
well, you kinda make it sound as if I am some rare specimen in the otherwise homogeneous Linux world...

Last edited by solarfields; 06-30-2017 at 05:17 AM.
 
Old 06-30-2017, 06:16 AM   #4
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
I also work in the same field, now we are at least 2...

However, I do not analyze FASTA files for the moment but PLINK or VCF-files. I also do not work with XML so, cannot help you here m8.

 
1 members found this post helpful.
Old 06-30-2017, 06:41 AM   #5
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by solarfields View Post
well, you kinda make it sound as if I am some rare specimen in the otherwise homogeneous Linux world...
Your implication that you are not alone is probably right on, but over the years I've found that there are some unique combinations of talents and interests that combine in the same person, so therefore sometimes it can be difficult to seek help when the problem overlaps two seemingly unrelated areas. However in your case, there's at least one (Bindestreck) who works in your field, so that's a start; a small one (he can't help you in your request), but still, there's hope.

Last edited by 1337_powerslacker; 06-30-2017 at 06:47 AM.
 
Old 06-30-2017, 06:51 AM   #6
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Original Poster
Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Quote:
I also work in the same field, now we are at least 2...
Great! shall we make a count, like how many Slackware users work in the field of biology? :P

Quote:
However, I do not analyze FASTA files for the moment but PLINK or VCF-files. I also do not work with XML so, cannot help you here m8.
well, yes of course... I guess fasta (or any _plain_ sequence format file) is just the start. I realy do not do much with sequence files in my text editor, apart from using them as input for anoher program. I just thought it would be neat if I could see the nucleotides or amino acids in colour... I am thinking that I could make another syntax for, say, codon alignments that would colour codons based on (surprise, surprise) the amino acid they code and also highlight start and stop codons... but not right now. Thanks for joining. I do not feel so alone :P
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim syntax highlight fails after debian upgrade darknails Linux - Software 7 05-19-2009 04:11 AM
setting syntax highlight for vi cramer Programming 18 08-14-2006 12:49 PM
Syntax highlight, how they make it? stormrider_may Programming 9 05-11-2006 08:36 PM
Emacs Syntax highlight UltraSoul Linux - Software 1 07-11-2005 09:19 AM
xterm under GNOME not syntax-highlight. yangsongx Slackware 3 03-24-2005 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration