Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • evepy88
    replied
    Thanks

    Thanks hanshart

    Leave a comment:


  • hanshart
    replied
    Hi evepy88,
    In Linux you can use awk to rearrange your fields
    The following code will do the job:
    Code:
    awk 'BEGIN{FS="[|>]"}{print "> "$3$2}'
    FS="[|>]" determines the field seperators to be "|" or ">"
    $3 and $2 refer to the third and second field then.

    awk can be used for every line of a file:
    Code:
    awk 'BEGIN{FS="[|>]"}{print "> "$3$2}' FILENAME
    or with the pipe:
    Code:
    echo "> contig85 |[average coverage: 76][Limit0.01]" | awk 'BEGIN{FS="[|>]"}{print "> "$3$2}'
    > [average coverage: 76][Limit0.01] contig85

    Leave a comment:


  • evepy88
    started a topic Command to reverse heading order

    Command to reverse heading order

    Hi everyone,

    I am a very beginner for linux command and I need help in the command needed to perform this action for the heading of my contig.
    Example:
    I have a sentence which is in this way
    > contig85 |[average coverage: 76][Limit0.01]

    How am I going to rearrange it into:
    > [average coverage:76][Limit 0.01] contig85

    Thank you very much
    XY

Latest Articles

Collapse

  • seqadmin
    Exploring the Dynamics of the Tumor Microenvironment
    by seqadmin




    The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...
    07-08-2024, 03:19 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 06:46 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-24-2024, 11:09 AM
0 responses
26 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-19-2024, 07:20 AM
0 responses
160 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-16-2024, 05:49 AM
0 responses
127 views
0 likes
Last Post seqadmin  
Working...
X