Recent content by blueberryfive

  1. B

    Heat energy change when gas compressed

    Ok, thanks. If the process weren't isothermal, then heat would enter the gas, right?
  2. B

    Heat energy change when gas compressed

    Homework Statement One mole of an ideal gas is in a container with a moveable piston. A 100 N force moves the piston down 1 m; the compression is isothermal. Does 100 J of energy leave the gas or enter the gas? Homework Equations W=Fd U=Q-W=Q-P(Vf-Vi) The Attempt at a Solution...
  3. B

    Calculus-based relationships in electrostatics

    Homework Statement I know for example that a=dv/dt and v=dx/dt. I was wondering whether there are similar relationships for things in electrostatics. I have to internalize all of these formulas (for electrostatics), so I was hoping to understand them in a calculus-based sense in order to...
  4. B

    Chemistry Most likely carbons for nucleophilic attack on a molecule

    Homework Statement I've attached a picture of the molecule. The question: at which molecules (s) would it be likely that there would be a nucleophilic attack? Homework Equations The Attempt at a Solution The answer key says a and c, only. However, I think that b is nucleophilic because...
  5. B

    Force and acceleration in object at rest

    Thanks, so I guess my problem is that F is the net force, not just the pulling force applied to the block.
  6. B

    Force and acceleration in object at rest

    Homework Statement An object is at rest and stays at rest, but a rope attached to it is pulling with increasing force. What is the acceleration? Homework Equations F=ma The Attempt at a Solution The solution is that acceleration is constant and 0. Obviously a= dv/dt =0, since...
  7. B

    Program to Pick Out Files From List

    nvn, I've been trying to learn awk, but I still have some questions. awk '{if(/^>/){close(file1);file1="db01/"substr($1,2)}; print $0 > file1}' m.txt I read this as: if a line matches ">" at the top, then close file 1 where file1="db01/"substr($1,2). Then, print the current record to file...
  8. B

    Program to Pick Out Files From List

    Worked like a charm! Thanks nvn.
  9. B

    Program to Pick Out Files From List

    Ok, great! db01 was created. I believe it was (3) that worked. Just a general question: what language is this? Awk? tmp01 is the same as m.txt. However, the db01 files are incorrect. It seems to have not broken it up the way it should have. I'm not sure that I decribed m.txt very well. It...
  10. B

    Program to Pick Out Files From List

    Hi nvn, It is in the same directory, removing the line break (;, right?) does not work. tmp01 is blank. m.txt looks like this: >1123.m000123 conserved hypothetical protein ATAAAGAACGCCGGaaaAATGCCTCCCCAATTTTAAAAATTTGAAAACCGGGGAAACCCTCCGCAATTTATAA >1243.m000121 hypothetical protein...
  11. B

    Program to Pick Out Files From List

    Hi nvn, I'm getting: awk: syntax error at source line 2 context is print dat1 > >>> "db01/"name1 <<< } awk: illegal statement at source line 2
  12. B

    Program to Pick Out Files From List

    Great, that worked. Thanks a lot for your help, and thanks for your advice to test it manually. Now I'm trying to build the database. I have a large .txt file m.txt in that looks like this: ... >something.m.something1.txt ATCTC......etc....ACTCCCCATTTT... >something.m.something2.txt...
  13. B

    Linear Algebra Proof

    Thanks Fredric that's all I wanted to know!
  14. B

    Program to Pick Out Files From List

    Thanks nvn! It's giving me output that looks like a long list of this: cp: /Users/username/databasegene/2003.m000043.txt: No such file or directory Which file or directory is it referring to? Another question, how exactly do I set up the database? I have a bunch of sequences listed in one...
  15. B

    Program to Pick Out Files From List

    Hi Everyone! This is my first question for programming. I have very little experience, so if you could explain as simply as possible. I have a list of output that actually looks like this: # Query: 2678.m000169 conserved hypothetical protein # Database: EST_matched_Genome.fas.txt...
Top