From 3fa70a0080e7eb871f0d8bca953cf4c8ea62b2a1 Mon Sep 17 00:00:00 2001
From: martinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Date: Thu, 12 May 2011 15:43:47 +0000
Subject: [PATCH] added offset switch to add_ident

git-svn-id: http://biopieces.googlecode.com/svn/trunk@1400 74ccb610-7750-0410-82ae-013aeee3265d
---
 bp_bin/add_ident | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bp_bin/add_ident b/bp_bin/add_ident
index 57a644a..b15a86d 100755
--- a/bp_bin/add_ident
+++ b/bp_bin/add_ident
@@ -40,6 +40,7 @@ $options = Maasha::Biopieces::parse_options(
     [
         { long => 'key',    short => 'k', type => 'string', mandatory => 'no', default => 'ID', allowed => undef, disallowed => undef },
         { long => 'prefix', short => 'p', type => 'string', mandatory => 'no', default => 'ID', allowed => undef, disallowed => undef },
+        { long => 'offset', short => 'o', type => 'uint',   mandatory => 'no', default => '0',  allowed => undef, disallowed => undef },
     ]   
 );
 
@@ -49,7 +50,7 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } );
 $key    = $options->{ "key" };
 $prefix = $options->{ "prefix" };
 
-$i = 0;
+$i = $options->{ "offset" };
 
 while ( $record = Maasha::Biopieces::get_record( $in ) ) 
 {
-- 
2.39.5