Skip to content

Compatibility with FALCON headers #59

@pb-cdunn

Description

@pb-cdunn

I was just about to pull Zev's fixes since we cut our release, when I noticed 06f5114:

commit 06f5114ecd107e10b3bdb4059b7f317910eb0692
Author: zeeev <jewbaru@gmail.com>
Date:   Wed Sep 12 14:19:25 2018

    Revert "added compatibility with other FALCON Unzip headers"

    This reverts commit aebec592ae0e24bd063409abf3dc01ea82fdbe94.

diff --git bin/scrub_names.pl bin/scrub_names.pl
index 8dd062a..3782dfc 100755
--- bin/scrub_names.pl
+++ bin/scrub_names.pl
@@ -55,8 +55,8 @@ PRI: while (<$IN>) {
     }
     else{
        chomp;
-       $_ =~ /^>(.*F(?:p\d+)?)/;
-       my $p_name = "$1";
+       $_ =~ /^>(.*)F/;
+       my $p_name = "$1F";
        print $OUT ">$p_name\n";
        $primaries{$p_name} = 1;
     }
@@ -92,7 +92,7 @@ HAP: while (<$INB>) {

 foreach my $k (@haplotigs){
     my @sname = split /_/, $k;
-#    $sname[0] =~ s/p\d+//;
+    $sname[0] =~ s/p\d+//;

@zeeev , why did you revert?

@skingan , were you aware of that revert? Is it ok?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions