Giter Site home page Giter Site logo

trimal -selectcols doesn't work about trimal HOT 6 CLOSED

inab avatar inab commented on June 2, 2024
trimal -selectcols doesn't work

from trimal.

Comments (6)

scapella avatar scapella commented on June 2, 2024

from trimal.

darap888 avatar darap888 commented on June 2, 2024

Thank you for response.

I tried several variations because I was not sure, how to use it

trimal -in t1.fas -out t2.fas -select {0-592,4268-5581}

and

trimal -in t1.fas -out t2.fas -selectcols {0-592,4268-5581}

and without gap after option

trimal -in t1.fas -out t2.fas -selectcols{0-592,4268-5581}

and with a gap after bracket

trimal -in t1.fas -out t2.fas -selectcols { 0-592,4268-5581}

and without brackets at all

trimal -in t1.fas -out t2.fas -selectcols 0-592,4268-5581

When I use option -noallgaps, it is working perfectly

Thnx in advance.

from trimal.

scapella avatar scapella commented on June 2, 2024

Could you please try out? trimal -in t1.fas -out t2.fas -selectcols { 0-592,4268-5581 }

As parsing arguments from command-line in C++ is difficult, we decided that the best way to do it is by asking for the opening bracket "{", blank space, all individual columns and/or intervals together separated either by "," and/or "-"; then blank space, and the closing bracket "}"

Hope it helps,

S

from trimal.

darap888 avatar darap888 commented on June 2, 2024

Actually, I tried it in the first place. It did not work.
In the end, I trimmed these columns with mothur pcr.seqs, as my colleague suggested (in case, anyone would need this function).

Anyway, I used trimal to delete all-gaps columns and it was good for my purpose.

Thank you very much again.

from trimal.

camilogarciabotero avatar camilogarciabotero commented on June 2, 2024

Hi @scapella,

I am also struggling with the -selectcols option. I've tried some of the variations with the "{}" symbols with space, without space, etc. However, when using it as the best way suggested e.g. -selectcols { 0-2142,0-2142 } (here I want to delete the first 2142 columns of my alignment), the problem continues. I could spot an error from my terminal (I'm using z-shell on OS X Catalina).

Screen Shot 2020-03-22 at 4 03 23 PM

I'm still stuck on this issue. So, if you can give me some lights on how to overcome it, I would really appreciate this.

Regards,
Camilo.

from trimal.

nicodr97 avatar nicodr97 commented on June 2, 2024

Hi @camilogarciabotero,

It seems that this is an issue with zsh parsing curly braces. You can either change to bash in your terminal or you can add a slash or single quotes to curly braces.
Option 1: exec bash to change current shell and use the following arguments -selectcols { 0-2142,0-2142 }
Option 2: execute it with zsh and the following arguments -selectcols \{ 0-2142,0-2142 \} or -selectcols '{' 0-2142,0-2142 '}'

As for what @darap888 commented,
Are you still having that error? Could specify which OS, shell and trimAl version are you using? What @scapella suggested should work fine (trimal -in t1.fas -out t2.fas -selectcols { 0-592,4268-5581 }).

Thank you for your feedback!
Nicolás

from trimal.

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.